published fresh until

OpenCode: why does prefill_cap_refused stop a turn?

Summary As of November 2026, wait for the error's suggested delay and resend the failed message first; OpenCode Go users report recovery that way or by changing models. Learn why the missing automatic retry is unresolved and HTTP 400 is only one hypothesis (checked 2026-11-07).

Not for output-budget stalls while preparing a file write; see opencode-stuck-preparing-write-output-token-limit.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

For prefill_cap_refused or ttft_admission_refused in OpenCode Go, follow the displayed retry delay and resend the failed message, or select another model as users report doing (chernya2010, anomalyco/opencode #62306). Do first: wait the delay shown in your error before resending the same message; the report's errors explicitly request a delayed retry, and its author reports successful resends (November 6).

A coding turn stops on an upstream admission refusal instead of continuing automatically. Separate Windows reports establish the symptom; successful manual retries and model changes are user reports, while a universal cause for the retry failure is not established (chernya2010, amirxon2011amirxon).

Not for: a stalled file write caused by output limits; see opencode-stuck-preparing-write-output-token-limit.

Diagnostic: prefill_cap_refused

  • OpenCode 2.2.5, Windows 10.0.26200.9457 x64, VS Code terminal: chernya2010 reports intermittent stream failures on opencode-go/deepseek-v4.1-flash, without active plugins, during multi-turn tool sessions. The error says “the cell is at capacity”. Their corrected follow-up counts 42 stream-error entries across October 27–28 and November 6, with suggested waits of 2–59 seconds; those logs contain no HTTP status or retryability flag (November 6 report, corrected counts and limitations).
  • Windows 11, version unspecified: amirxon2011amirxon independently reports prefill_cap_refused on November 7. The issue body does not name a provider or model; commenters M4rt11n and Shardj separately identify DeepSeek V4.1 Flash, and M4rt11n reports recovery after selecting another model (anomalyco/opencode #62524, M4rt11n, Shardj).
  • Additional macOS account: wujun2081 reports ten capacity refusals on November 6–7 with an active paid Go subscription, OpenMausBot client 1.18.31, and the same provider/model. This is a different host/client report, not another OpenCode 2.2.5 reproduction (November 7).

Cause and reported workarounds

The upstream error identifies capacity admission refusal. chernya2010 reports that resending the failed message or choosing another model on the same provider allows continuation; M4rt11n independently reports model-switch recovery. Neither report establishes a permanent provider-side correction (chernya2010, M4rt11n).

The repository's automated responder opencodejr reports a mock-endpoint comparison on 2.2.5: HTTP 429, 503 and an in-stream error retried, while HTTP 400 stopped immediately. It could not reproduce an overloaded live Go account and suggested a gateway 4xx mapping as a hypothesis (November 6 bot analysis).

That is not proof that these live failures all use HTTP 400: chernya2010's log lacks status data, and leofionn separately posts a capacity refusal displaying 429. The report requests HTTP status and retry-header visibility to distinguish gateway mapping from client handling (chernya2010, leofionn, November 7).

Resolution status

Issue #62306 remains open, with no linked correcting PR or release in its record; #62524 was closed as a duplicate of #62306 on 2026-11-08, checked 2026-11-14. Delayed automatic retry is requested, not established as a released correction. The duplicate closure is not a fix (#62306, #62524).

Checked 2026-11-07.

Limits

The failure is intermittent and load-dependent in the detailed report. The second issue omits its OpenCode version and model. Paid-plan occurrence does not establish how account quota is handled, and mock retry behavior does not establish the HTTP status of a live refusal. This case does not cover ordinary quota exhaustion or file-output limits.

Started from a post by @chernya2010, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: why does prefill_cap_refused stop a turn?
Summary: As of November 2026, wait for the error's suggested delay and resend the failed message first; OpenCode Go users report recovery that way or by changing models. Learn why the missing automatic retry is unresolved and HTTP 400 is only one hypothesis (checked 2026-11-07).
Copy for agent
get the whatworks thread opencode-go-prefill-cap-refused-retry and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-go-prefill-cap-refused-retry
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp