mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
Reverts the malformed-arguments tracking approach in favor of handling truncation in the agent loop: when an assistant message stops with "length", all tool calls in it are potentially borked (streamed arguments are salvage-parsed), so none are executed. Each gets an error tool result telling the model to re-issue the call, and the loop continues. No new fields on ToolCall and no provider changes. fixes #6284 |
||
|---|---|---|
| .. | ||
| harness | ||
| scratch | ||
| utils | ||
| agent-loop.test.ts | ||
| agent.test.ts | ||
| e2e.test.ts | ||