A malformed tool call the server refuses fails the whole step (fastllm) #211
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Run 79 (Aurora Links, fastllm kind), 2026-10-18:
openspec.apply[all]failed at 15 of 27 tasks on one session error:provider.invalid-request: Invalid tool call: malformed_tool_block at index None (Tool 'read' contains malformed parameter markup)fastllm 78fcbab (
ftllm/openai_server/fastllm_completion.py, about line 3839) ends the stream with aninvalid_tool_callerror when the model's Qwen XML tool block does not parse. vLLM hands the text back instead. opencode does not retry the error and ends the turn, and Braid then judged the attempt. The retry started over in a fresh session, losing the context the session had built up. fastllm's log shows one such error in 8 hours.Fix: on a backend other than Free, when the step's own session errors with an unparseable tool call, re-prompt the same session to make the call again, up to 3 times per attempt. Past that, the attempt ends as before.