Skip to content

opencode-go/muse-spark-1.2-contributor 502 truncation on large tool-call tasks (mid tool call without terminal signal) #2193

Description

@Yuxin-Qiao

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

  1. 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
  2. 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"`
  3. 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
  4. 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

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingproviderProvider adapters, OpenAI-compat presets, upstream API quirksstreamingSSE, WebSocket, terminal stream framestoolstool_calls, MCP, web-search / sidecar tools

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions