zames_pro 2.10.0 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-loop.js +4 -2
- package/package.json +1 -1
package/dist/agent-loop.js
CHANGED
|
@@ -334,10 +334,12 @@ export async function runAgentLoop({ browser, tools, task, workdir, maxIteration
|
|
|
334
334
|
continue;
|
|
335
335
|
}
|
|
336
336
|
const suspiciousFinal = responseLooksLikeToolCall(rawResponse) ||
|
|
337
|
+
looksLikeUnfinishedWork((rawResponse || '').trim()) ||
|
|
337
338
|
!(rawResponse || '').trim();
|
|
338
339
|
if (suspiciousFinal) {
|
|
339
|
-
// The answer LOOKS like a call
|
|
340
|
-
// even after all retries: warn the
|
|
340
|
+
// The answer LOOKS like a call / promises work / is empty, but could
|
|
341
|
+
// not be turned into a tool call even after all retries: warn the
|
|
342
|
+
// operator instead of silently printing e.g. "Stale. Let me verify".
|
|
341
343
|
transcript?.log('suspicious_final', { response: rawResponse });
|
|
342
344
|
onWarning(translate(locale)('msg.suspicious_stop'));
|
|
343
345
|
}
|