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
Assistant messages missing thinking block in conversation history when extended thinking is enabled #20427
When using an Anthropic-compatible API provider with extended thinking enabled, opencode does not include the thinking content block in assistant messages when replaying conversation history. This may cause downstream errors like:
{
"error": {
"type":"invalid_request_error",
"message": "thinking is enabled but reasoning_content is missing in assistant tool call message at index 1"
}
}
Trigger a multi-turn conversation that involves tool use (e.g. type "Please search for news about opencode"), which causes the model to invoke a tool call followed by a tool result
Activity
github-actions commentedon Apr 1, 2026
This issue might be a duplicate of existing issues. Please check:
"thinking is enabled but reasoning_content is missing in assistant tool call message"If your issue is the same, please consider adding a comment there instead or linking these issues together.
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.