mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 11:38:34 +00:00
test(gateway): retry live exec read probe wording
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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") ||
|
||||
|
||||
Reference in New Issue
Block a user