test(gateway): retry live exec read probe wording

This commit is contained in:
Vincent Koc
2026-05-28 01:09:59 +02:00
parent 59c3ee7c45
commit 92043f7547
2 changed files with 12 additions and 0 deletions

View File

@@ -279,6 +279,17 @@ describe("live tool probe utils", () => {
},
expected: true,
},
{
name: "retries alternate exec readback retry wording",
params: {
text: "Let me try again with a slightly different approach:",
nonce: "nonce-c",
provider: "minimax-portal",
attempt: 0,
maxAttempts: 3,
},
expected: true,
},
{
name: "retries eventual-consistency exec readback output",
params: {

View File

@@ -66,6 +66,7 @@ function hasMalformedToolOutput(text: string): boolean {
}
if (
lower.includes("try reading the file again") ||
lower.includes("try again with a slightly different approach") ||
lower.includes("trying to read the file again") ||
lower.includes("try the read tool again") ||
lower.includes("file wasn't found immediately after") ||