Description
On macOS, a fresh OpenCode CLI session using OpenAI via Codex OAuth repeatedly aborts while streaming reasoning with:
reasoning part rs_<redacted>:0 not found
The session used openai/gpt-5.6-sol-fast with the high reasoning variant. The first failure occurred after approximately 52 reasoning/tool loops in an active session. Retrying the same turn three times produced the same error shape with a different rs_* ID each time.
This appears related to #33934 and #27987, but expands the affected environment from Windows/Desktop with gpt-5.5-fast/xhigh to macOS/CLI with gpt-5.6-sol-fast/high on the latest OpenCode release.
Plugins
No explicitly configured plugins.
OpenCode version
1.17.18
Steps to reproduce
- Run OpenCode CLI on macOS and authenticate to OpenAI using Codex OAuth.
- Select
openai/gpt-5.6-sol-fast with reasoning variant high.
- Start a fresh
plan agent session with a codebase investigation that performs repeated reasoning and tool calls.
- Allow the session to continue for many tool/reasoning loops. In this case it failed at approximately step 52.
- Retry the failed turn. The stream aborts again with
reasoning part rs_*:0 not found, using a new reasoning ID on each retry.
Sanitized log shape
stream providerID=openai modelID=gpt-5.6-sol-fast small=false agent=plan mode=primary
llm runtime selected llm.runtime=ai-sdk llm.provider=openai llm.model=gpt-5.6-sol-fast
process error="reasoning part rs_<redacted>:0 not found"
Expected behavior
OpenCode should reconcile repeated reasoning segments/start-end cycles for the same OpenAI Responses reasoning item, or safely tolerate an unmatched reasoning-end event without aborting the session.
Actual behavior
The assistant stream terminates with reasoning part rs_*:0 not found. Retrying does not recover the session.
Screenshot and/or share link
None.
Operating System
macOS 26.5.1, Darwin 25.5.0, arm64
Terminal
Ghostty
Description
On macOS, a fresh OpenCode CLI session using OpenAI via Codex OAuth repeatedly aborts while streaming reasoning with:
The session used
openai/gpt-5.6-sol-fastwith thehighreasoning variant. The first failure occurred after approximately 52 reasoning/tool loops in an active session. Retrying the same turn three times produced the same error shape with a differentrs_*ID each time.This appears related to #33934 and #27987, but expands the affected environment from Windows/Desktop with
gpt-5.5-fast/xhighto macOS/CLI withgpt-5.6-sol-fast/highon the latest OpenCode release.Plugins
No explicitly configured plugins.
OpenCode version
1.17.18Steps to reproduce
openai/gpt-5.6-sol-fastwith reasoning varianthigh.planagent session with a codebase investigation that performs repeated reasoning and tool calls.reasoning part rs_*:0 not found, using a new reasoning ID on each retry.Sanitized log shape
Expected behavior
OpenCode should reconcile repeated reasoning segments/start-end cycles for the same OpenAI Responses reasoning item, or safely tolerate an unmatched reasoning-end event without aborting the session.
Actual behavior
The assistant stream terminates with
reasoning part rs_*:0 not found. Retrying does not recover the session.Screenshot and/or share link
None.
Operating System
macOS 26.5.1, Darwin 25.5.0, arm64
Terminal
Ghostty