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
Aborted messages should be skipped if they only have step-start/reasoning. But the patch part (created on abort) passes this check, so the message gets included with only reasoning content. Anthropic rejects non-final assistant messages with only reasoning.
Fix:
Add patch to exclusion, or check for output-producing parts (text, tool) explicitly.
This issue might be a duplicate of existing issues. Please check:
Missing context after network interruption #3101: Missing context after network interruption - Related issue mentioning the same error: 'all messages must have non-empty content except for the optional final assistant message'
The root cause appears to be similar: messages reaching the API with no text or output-producing content. Your specific case involves thinking-only content filtered out, while #6446 was about tool-only messages, but the underlying issue in toModelMessage() filtering logic seems related.
Feel free to ignore if your case is indeed the specific 'patch part' bypass issue described in your report.
I'm also experiencing this all the time since the most recent update - if anyone stumbles upon here, you an fix it by Cmd + P > Fork and picking your most recent message
There is some bug with opencode that causes the context to be continuously empty, it seems to happen most frequently when you cancel an LLM output
Activity
github-actions commentedon Jan 17, 2026
This issue might be a duplicate of existing issues. Please check:
The root cause appears to be similar: messages reaching the API with no text or output-producing content. Your specific case involves thinking-only content filtered out, while #6446 was about tool-only messages, but the underlying issue in toModelMessage() filtering logic seems related.
Feel free to ignore if your case is indeed the specific 'patch part' bypass issue described in your report.
grumpygordon commentedon Jan 17, 2026
Sorry, created this accidentally with opencode, its my local build error...
dan-cooke commentedon Jan 27, 2026
I'm also experiencing this all the time since the most recent update - if anyone stumbles upon here, you an fix it by Cmd + P > Fork and picking your most recent message
There is some bug with opencode that causes the context to be continuously empty, it seems to happen most frequently when you cancel an LLM output
madeleineostoja commentedon Feb 4, 2026
Also experiencing this when interrupting thinking. Forking from a known good state is a good workaround
ujjwaljainnn commentedon Feb 10, 2026
If you didn't have file changes, you can also just click on your last message and run the revert command