You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AI_InvalidToolInputError: Invalid input for tool write: Type validation failed #946
PS: I had to write this error message my hand, I can't copy text in the TUI and /share didn't include the error from Opencode, only get Tool execution aborted there.
I get the same error with v0.3.2. using Gemini 2.0 Flash via open router.
The weird thing is that it actually completes the task as expected ("Create a test.md with "Hello World" as content") but it throws the "Tool execution aborted" consistently
Activity
stefkampouris commentedon Jul 13, 2025
+1
Avinier commentedon Jul 13, 2025
tool executions do get messed up sometimes, prompting a simple 'continue' after the error does the work 99% of the times.
stefkampouris commentedon Jul 13, 2025
Tried it but still with kimi k2 when writing files with open router please fix it asap
JPDucky commentedon Jul 13, 2025
I can confirm that this error occurs as well with most of the openrouter models that have been released this week that I have tried (see pic).
From my openrouter activity panel:
Let me know what other information I can provide that may be helpful.
pristugm commentedon Jul 13, 2025
@thdxr Kimi is turning out to be a claude tier agent model and 80% cheaper, please make it usable!!
sdeleon28 commentedon Jul 14, 2025
getting the same with most OpenAI models
stefkampouris commentedon Jul 14, 2025
its fixed with the new version
sevdeutsch commentedon Jul 14, 2025
I get the same error with v0.3.2. using Gemini 2.0 Flash via open router.
The weird thing is that it actually completes the task as expected ("Create a test.md with "Hello World" as content") but it throws the "Tool execution aborted" consistently
sareiodata commentedon Jul 14, 2025
Can confirm this exact error is fixed in the latest version. It can write json inside json files now.
I'm using it with mistralai/devstral-small-2507
moziboo commentedon Jul 14, 2025
I'm still getting this when using OpenRouter and it needs to run a git command. Is that a new issue? v0.3.5
sdeleon28 commentedon Jul 14, 2025
Still happenning pretty much all the time in 0.3.5.
Most of the errors are about
replaceAllandtimeout.@thdxr / @sareiodata can you re-open?
P.S.: FWIW it's not the model,
codexsucceeds to act on the same exact prompts in the same exact codebase.nacholupotti commentedon Jul 16, 2025
Same error than @sdeleon28 here
sareiodata commentedon Jul 17, 2025
Both seam to be individual issues, not related to this. The error messages are different.
fix(sidebar): preserve child task sessions during root sync (anomalyc…