GeezerVison is showing github.com — tool_use` ids were found without `tool_result` blocks · Issue #4802 · anomalyco/opencode
tool_use ids were found without tool_result` blocks #4802
Labels
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui Description
Description
With Anthropic Claude Opus 4.5 (latest)
Seems unrecoverable:
messages.55: `tool_use` ids were found without `tool_result` blocks immediately after:
toolu_01JKfqxRrU8oAPSczPHTGAkZ. Each `tool_use` block must have a corresponding
`tool_result` block in the next message.
Does not want to proceed after this.
OpenCode version
1.0.115
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04
Terminal
Alacritty, tmux
Activity
github-actions commented on Nov 26, 2025
This issue might be a duplicate of existing issues. Please check:
These all report the same error about tool_use blocks not having corresponding tool_result blocks. The issue appears to be a known bug with the messaging format/validation when using Claude models.
Feel free to ignore if this relates to a specific new trigger or different use case with Claude Opus 4.5.
rekram1-node commented on Nov 26, 2025
okay enoughs enough ill fix this
The anthropic api has some bug where it corrupts the local state, the client has to account for the discrepency itself
Until it's fixed you can always do /undo
rekram1-node commented on Nov 26, 2025
im gonna close this as a duplicate but just know this is top of mind to address soon
rekram1-node commented on Nov 27, 2025
@berenddeboer any chance you can send me the file session.json from an export dump:
opencode export > session.json
Itll open up a selector if you can choose the session that errored for u
Metadata
Metadata
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui Development
No branches or pull requestsIssue actions