Client or integration
Codex App
Area
Provider adapter
Summary
opencode-go/muse-spark-1.2-contributor via opencodex proxy 10100 consistently returns 502 upstream_server_error on large-context + tool-call tasks. Codex shows Reconnecting 1/5...5/5 then stream disconnected before completion: upstream stream ended mid tool call without a terminal signal — possible truncation. Small tasks succeed, large sweep always fails, deepseek-v4-flash on same task succeeds.
Expected: large tool-chain tasks should not truncate even on low, or opencodex should auto-downgrade effort / retry / fallback to a working model on 502 truncation instead of 5 ineffective retries.
Reproduction
opencodex 2.27.0 + codex 0.147.0, ~/.codex/config.toml model = "opencode-go/muse-spark-1.2-contributor" model_reasoning_effort = "high/medium/low" all reproduce
- Workspace
CodexBar-bug:feat, codex exec "Continue aligning the status of CodexBar-bug:feat — sweep branches, local changes and PR/CI. Just run bash tools \git status` and `git branch -vv` and summarize"`
localhost:10100/#logs shows 5 consecutive 502 high, ~/.opencodex/usage.jsonl ocx-mt1b32u3-d ... ocx-mt1b3tn0-l status 502 upstreamError mid tool call without terminal signal adapter openai-chat.ts:1734
- Small tasks
hi / 1+1=2 succeed with 200 on low/medium/high, switching to opencode-go/deepseek-v4-flash high on same large task succeeds 200
Version
2.27.0
Operating system
macOS 15.5 (darwin 24.x)
Provider and model
opencode-go / muse-spark-1.2-contributor
Logs or error output
requestId ocx-mt1b32u3-d ... ocx-mt1b3tn0-l
provider opencode-go model muse-spark-1.2-contributor
requestedEffort high effectiveEffort high reasoningWireValue high status 502
upstreamError: upstream stream ended mid tool call without a terminal signal — possible truncation
adapter: openai-chat src/adapters/openai-chat.ts:1734
~/.opencodex/usage.jsonl ocx-mt1aawks-4f xhigh 502 and ocx-mt1b32u3-d etc high 502
~/.opencodex/service.log no extra stack, openai-chat logs stream-truncated pendingToolCalls>0
Screenshots and supporting files
localhost:10100/#logs 2026/08/20 17:16:39-58 5x high 502 screenshots, Codex Reconnecting 5/5 screenshots available
Redacted configuration
{
"providers": {
"opencode-go": {
"modelReasoningEfforts": { "muse-spark-1.2-contributor": ["low","medium","high","xhigh","max"] },
"modelDefaultReasoningEfforts": { "muse-spark-1.2-contributor": "high" }
}
}
}
Checks
Client or integration
Codex App
Area
Provider adapter
Summary
opencode-go/muse-spark-1.2-contributorviaopencodex proxy 10100consistently returns502 upstream_server_erroron large-context + tool-call tasks.CodexshowsReconnecting 1/5...5/5thenstream disconnected before completion: upstream stream ended mid tool call without a terminal signal — possible truncation. Small tasks succeed, large sweep always fails,deepseek-v4-flashon same task succeeds.Expected: large tool-chain tasks should not truncate even on
low, oropencodexshould auto-downgradeeffort/ retry / fallback to a working model on502 truncationinstead of 5 ineffective retries.Reproduction
opencodex 2.27.0+codex 0.147.0,~/.codex/config.tomlmodel = "opencode-go/muse-spark-1.2-contributor"model_reasoning_effort = "high/medium/low"all reproduceCodexBar-bug:feat,codex exec "Continue aligning the status of CodexBar-bug:feat — sweep branches, local changes and PR/CI. Just run bash tools \git status` and `git branch -vv` and summarize"`localhost:10100/#logsshows 5 consecutive502high,~/.opencodex/usage.jsonlocx-mt1b32u3-d ... ocx-mt1b3tn0-lstatus 502 upstreamError mid tool call without terminal signaladapter openai-chat.ts:1734hi/1+1=2succeed with200onlow/medium/high, switching toopencode-go/deepseek-v4-flash highon same large task succeeds200Version
2.27.0
Operating system
macOS 15.5 (darwin 24.x)
Provider and model
opencode-go / muse-spark-1.2-contributor
Logs or error output
~/.opencodex/usage.jsonlocx-mt1aawks-4fxhigh 502andocx-mt1b32u3-detchigh 502~/.opencodex/service.logno extra stack,openai-chatlogsstream-truncated pendingToolCalls>0Screenshots and supporting files
localhost:10100/#logs2026/08/20 17:16:39-58 5xhigh 502screenshots,CodexReconnecting 5/5 screenshots availableRedacted configuration
{ "providers": { "opencode-go": { "modelReasoningEfforts": { "muse-spark-1.2-contributor": ["low","medium","high","xhigh","max"] }, "modelDefaultReasoningEfforts": { "muse-spark-1.2-contributor": "high" } } } }Checks