Claude 4.5 streams partial tool call arguments (create_new_file fails with empty filepath) #8265
Unanswered
BraianRosales
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I think I found a bug when running tool calls with Claude 4.5 inside Continue.
It seems the model is streaming partial fragments of the arguments JSON instead of sending one complete JSON object.
Here’s what I see in the logs:
Because of this, the tool throws the error:
filepath argument is required and must not be empty.
This only happens with Claude 4.5 — GPT-4 and GPT-5 send the full JSON correctly.
So it looks like Continue isn’t buffering or reconstructing the streamed arguments chunks before parsing them.
Expected behavior:
The tool call should receive a complete JSON object (with filepath and contents), not incremental fragments.
Actual behavior:
The tool handler receives multiple partial chunks of arguments, resulting in invalid JSON and tool failure.
Has anyone else seen this issue?
Maybe the fix needs to happen in the Anthropic handler or in the tool execution middleware?
Thanks! 🙏
Beta Was this translation helpful? Give feedback.
All reactions