Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool use error stops new commands from being registered #290

Open
andrewreece opened this issue Mar 3, 2025 · 3 comments
Open

Tool use error stops new commands from being registered #290

andrewreece opened this issue Mar 3, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@andrewreece
Copy link

Claude was working fine and then hung on a simple command. I hit Esc and typed a new command, and got this message:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.204: Did not find 1 tool_result block(s) at the beginning of
this message. Messages following tool_use blocks must begin with a matching number of tool_result blocks."}}

Now it responds with this error no matter what I type. Running /doctor reported no issues.

@ashwin-ant ashwin-ant added the bug Something isn't working label Mar 3, 2025
@bcherny
Copy link
Collaborator

bcherny commented Mar 3, 2025

Do you remember which command this was? (bash? something else?)

@bcherny
Copy link
Collaborator

bcherny commented Mar 3, 2025

Also what version are you running? claude --version or /bug to create a new issue with the version.

@andrewreece
Copy link
Author

it was a piped shell command maybe grep or sed or something like that. claude chose it, but it disappeared each time this error showed up (the error replaced the command it was running) so i wasn't paying too close attention.

Claude 0.2.29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants