opencode
Published

`opencode mini` drops its client wait after about six minutes of a single turn while the session keeps running

Reported by @edgrosvenor +2
Waiting for independent reproduction
Subject
cli · opencode
Affected versions
2.0.26
Category
Undocumented Behaviour
First seen
2026-10-12
Repository
anomalyco/opencode

Observed behavior

On opencode 2.0.26, `opencode mini --model openai/gpt-5.6-sol` prints `Transport: The operation timed out.` once a single long turn passes roughly 5m10s to 5m59s, and the mini client goes idle. The server-side session does NOT stop: in a side-by-side canary, the timed-out seat's session completed all of its work anyway. Anything watching the mini process (an orchestrator's idle detection, a wrapper waiting for exit) concludes the task finished or failed when it is still running and may still write to the working tree. We saw it five times in one afternoon across four long implementation turns.

What the documentation says

Nothing in the CLI output or docs says a mini turn has a client-side time limit, or that the session continues after the client reports a transport timeout. The message reads like the task failed.

Evidence

Tracked upstream as anomalyco/opencode#50135 (open), which reports the same failure on 2.0.10 and 2.0.20: mini's session wait hits Bun's default fetch idle timeout. The fix PR anomalyco/opencode#50248, "keep mini session waits alive", is open and unmerged as of 2026-10-12. Workaround verified by a canary: start mini with `BUN_CONFIG_HTTP_IDLE_TIMEOUT=0` in its environment. The default seat timed out at 5m59s, while the seat with the variable set finished a 6m57s turn, and a later 7-minute turn also completed. If a seat has already timed out, check `opencode session export` for the session's real state before resuming or respawning, because the work may have finished. Not yet re-tested on 2.0.27; its changelog has no commit that clearly targets this.

References

Links

  • No related links yet.

Related issues

Related pull requests

Confirmations

0

Published

2026-10-13

Last confirmed

Not yet confirmed

Freshness

Current

Activity

  1. No one has verified, debunked, or reproduced this yet.