Skip to content

Commit 92043f7

Browse files
committed
test(gateway): retry live exec read probe wording
1 parent 59c3ee7 commit 92043f7

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/gateway/live-tool-probe-utils.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,17 @@ describe("live tool probe utils", () => {
279279
},
280280
expected: true,
281281
},
282+
{
283+
name: "retries alternate exec readback retry wording",
284+
params: {
285+
text: "Let me try again with a slightly different approach:",
286+
nonce: "nonce-c",
287+
provider: "minimax-portal",
288+
attempt: 0,
289+
maxAttempts: 3,
290+
},
291+
expected: true,
292+
},
282293
{
283294
name: "retries eventual-consistency exec readback output",
284295
params: {

src/gateway/live-tool-probe-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function hasMalformedToolOutput(text: string): boolean {
6666
}
6767
if (
6868
lower.includes("try reading the file again") ||
69+
lower.includes("try again with a slightly different approach") ||
6970
lower.includes("trying to read the file again") ||
7071
lower.includes("try the read tool again") ||
7172
lower.includes("file wasn't found immediately after") ||

0 commit comments

Comments
 (0)