Description
On Windows Desktop v1.17.11, OpenAI via Codex OAuth can fail a fresh Desktop session when using model openai/gpt-5.5-fast with variant xhigh.
The surfaced Desktop error is:
"reasoning part rs_0fb3300ac7bf0ed4016a3d4ba7f050819a94b5161d7e1791ab:0 not found"
I also saw the same shape with other reasoning ids in separate Desktop sessions.
Sanitized environment
- OS: Windows 11 x64
- OpenCode Desktop: v1.17.11
- OpenCode CLI after manual alignment: v1.17.11
- Provider: OpenAI using Codex OAuth
- Runtime from log:
llm.runtime=ai-sdk
- Model from session DB:
{"id":"gpt-5.5-fast","providerID":"openai","variant":"xhigh"}
Steps to reproduce
- On Windows 11, run OpenCode Desktop v1.17.11 authenticated to OpenAI via Codex OAuth.
- Select
openai/gpt-5.5-fast with variant xhigh.
- Start a fresh Desktop agent session with a normal file-edit or documentation-inspection task.
- Let the assistant stream reasoning/tool-planning output.
- The session can fail with the reasoning part error above.
What I observed locally
- New Desktop sessions were created successfully, then failed during the assistant stream.
- The local DB had multiple reasoning parts associated with the same OpenAI reasoning item id before the assistant message stored the error.
- Example duplicate OpenAI item id from
metadata.openai.itemId: rs_0fb3300ac7bf0ed4016a3d4ba7f050819a94b5161d7e1791ab
- Assistant error stored in DB:
"reasoning part ...:0 not found"
Expected behavior
OpenCode should merge/reconcile repeated reasoning segments for one OpenAI Responses reasoning item, or tolerate a reasoning-end event without crashing the session.
Actual behavior
The Desktop session fails with "reasoning part rs_*:0 not found".
Mitigation that worked locally
- Set the default agent model to
openai/gpt-5.5 with variant high.
- Disable
gpt-5.5-fast variants in config.
- After restart, a default OpenCode run selected
gpt-5.5/high and completed.
Possibly related
Issue #27987 looks related at the processor layer because it discusses multiple reasoning-start/end cycles and reasoning part merging, but this report is specifically the OpenAI/Codex OAuth plus gpt-5.5-fast/xhigh failure case on Windows Desktop v1.17.11.
Description
On Windows Desktop v1.17.11, OpenAI via Codex OAuth can fail a fresh Desktop session when using model
openai/gpt-5.5-fastwith variantxhigh.The surfaced Desktop error is:
I also saw the same shape with other reasoning ids in separate Desktop sessions.
Sanitized environment
llm.runtime=ai-sdk{"id":"gpt-5.5-fast","providerID":"openai","variant":"xhigh"}Steps to reproduce
openai/gpt-5.5-fastwith variantxhigh.What I observed locally
metadata.openai.itemId:rs_0fb3300ac7bf0ed4016a3d4ba7f050819a94b5161d7e1791ab"reasoning part ...:0 not found"Expected behavior
OpenCode should merge/reconcile repeated reasoning segments for one OpenAI Responses reasoning item, or tolerate a reasoning-end event without crashing the session.
Actual behavior
The Desktop session fails with
"reasoning part rs_*:0 not found".Mitigation that worked locally
openai/gpt-5.5with varianthigh.gpt-5.5-fastvariants in config.gpt-5.5/highand completed.Possibly related
Issue #27987 looks related at the processor layer because it discusses multiple reasoning-start/end cycles and reasoning part merging, but this report is specifically the OpenAI/Codex OAuth plus
gpt-5.5-fast/xhighfailure case on Windows Desktop v1.17.11.