go: iceman-contributor-free fails with [invalid_request_error] 'summary' is not a supported value for 'reasoning_display'
Summary
opencode-go/iceman-contributor-free fails on every turn with:
Error: Upstream request failed: [invalid_request_error] `summary` is not a supported value for `reasoning_display`.
The reasoning_display parameter is not sent by the client (it does not exist anywhere in the opencode codebase, including the AI SDK provider packages), so this appears to be composed by OpenCode's hosted Go inference gateway (opencode.ai/inference/go/...) when proxying to the model's real upstream. The value summary looks like an invalid serialization — gateways that accept this parameter expect values such as summarized / omitted (Anthropic thinking.display) or encrypted (Azure MAI). Since the parameter is added server-side, no client config change can work around it.
Environment
- opencode version: 2.2.7 (latest)
- OS: Windows_NT 10.0.26200 (win32 x64)
- Terminal: Windows Terminal (
TERM=xterm-256color,WT_SESSIONset) - Shell:
cmd.exe(ComSpec) - Install/channel: latest stable
- Active plugins: local files in
~/.config/opencode/plugins/:ai-memory.ts,rtk.ts(nopluginsentries in config)
Reproduction
- Start OpenCode (TUI) on 2.2.7.
- Select model
opencode-go/iceman-contributor-freevia/models. - Send any prompt in the
buildagent.
The turn fails consistently — 4/4 attempts between 19:46:32Z and 19:56:15Z on 2026-11-11 (run=d7f98956, sessionID=ses_e33fb04deffexsfmHzLqNHzAHL).
A direct curl to https://opencode.ai/inference/go/openai/v1/chat/completions with a minimal chat body could not complete an independent repro from this machine (blocked by MissingSessionID / authentication_error around the x-opencode-session routing), so the repro above is TUI-only.
Expected Behavior
The turn completes normally (or OpenCode stops sending/retries without the unsupported reasoning_display value for models whose upstream rejects it).
Actual Behavior
The session fails to drain with no assistant response. Server log:
timestamp=2026-11-11T19:46:32.247Z level=ERROR run=d7f98956 message="Failed to drain Session"
cause="AI.Error: Upstream request failed: [invalid_request_error] `summary` is not a supported value for `reasoning_display`."
role=server sessionID=ses_e33fb04deffexsfmHzLqNHzAHL
(repeated at 19:46:40Z, 19:52:19Z, 19:56:15Z)
Additional Context
- Client never sends
reasoning_display: searched the repo (packages/*, AI SDK providers) — no occurrence. So the invalid value must be injected by the Go inference gateway between OpenCode and the model's actual provider. - Other
iceman-contributor-freefailure modes were reported recently and may be related to the same unstable serving route: #61512 (encrypted reasoning object rejected by openai-compatible-chat parser), #60076 (422Endpoint is unavailableon any turn following a tool result), #58071. - Earlier on the same machine/day, the same model returned the client-gating error
This OpenCode Go model trains on request data. Turn on "Allow paid endpoints that train on request data" ...while the org privacy setting was off — mentioning it in case route selection (training vs non-training endpoint) interacts with this failure. - Workaround: switching to another free model (
deepseek-v4.1-flash, etc.) works fine.
Thanks for the detailed report. I installed OpenCode 2.2.7, but this sandbox has no OpenCode Go account, so I couldn't reach the hosted Go endpoint and see this error myself.
In the client code I read, I found no reasoning_display parameter. That supports your view that it is added between OpenCode and the model's upstream, but the hosted Go service's source isn't in this repository, so I couldn't confirm it. A maintainer with Go access will need to look into it.
Related issues for the same model:
- #61512: encrypted reasoning from
iceman-contributor-freerejected by the chat stream parser - #60076:
Endpoint is unavailableon turns after a tool result - #59547:
Endpoint is unavailablefor Go free models
Until then, switching to another Go model works, as you found.
Can confirm
Seems not to happen anymore on my end, can you check again?
This error was produced upstream of the client (OpenCode never sends reasoning_display), and it has since stopped happening for others using this model. Closing it for now; if you still get it on the latest version, comment here and we'll reopen.