Ask again after a malformed tool call instead of failing the step #212
Loading…
Reference in a new issue
No description provided.
Delete branch "malformed-tool-call-continues"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #211. OpenSpec change
openspec/changes/malformed-tool-call-continues(validates--strict).On run 79, fastllm ended a turn with
Invalid tool call: malformed_tool_block ... (Tool 'read' contains malformed parameter markup). opencode reads that asprovider.invalid-requestand does not retry, andopenspec.apply[all]failed at 15 of 27 tasks, then started over in a fresh session.Now, on every backend but Free, the step notes that error from its own session. When the session goes quiet, it re-prompts the same session: "Your last tool call could not be parsed by the model server, so it did not run. Make it again with valid parameters…". This happens at most 3 times per attempt; past that the attempt ends as before. It is the same path as the output-limit cut-off re-prompt (#101).
Tests: the recorded error shape, re-prompting up to the bound, and other errors left alone. Fast lane passed: 4,505 backend, 918 vitest, browser specs.
🤖 Generated with Claude Code