Playbooks · Coding tasks
OpenCode 2.3.1 lets timed-out shell commands keep running
Written November 21, 2026
OpenCode 2.3.1 moves a shell command that hits its timeout to the background instead of killing it, and writes compaction summaries in the background too.
A timeout used to be the end of a shell command in OpenCode: the clock ran out, the command died, and a long build or test run had to start over. The v2.3.1 release notes change that outcome. A command that is still running when its timeout expires now moves to the background instead of being killed, so it can finish and report back. The same release applies the background idea to compaction, restores reading CLAUDE.md files, adds GPT 6.2 models for ChatGPT sign-ins, and gives plugins an update path inside Settings.
A timed-out command moves to the background
The change is plain: a shell command still running when its timeout expires now moves to the background instead of being killed, in every build. For a build that runs a little long, or a test suite that crosses the limit near the end, that is the difference between getting a result and losing the whole run.
Two details around the edges matter if you have tuned this behavior before. The shell_timeout_background flag is gone, because the behavior is now the default rather than an option, but configurations that still set it keep loading, so an older config does not break on upgrade. And a foreground timeout: 0 now means the default 120 seconds, instead of waiting until the command exits. If you set zero expecting no limit at all, your commands now get two minutes in the foreground before they move to the background.
Compaction summaries are written in the background
Background compaction is on by default in this release. As a session nears automatic compaction, the summary is written in the background, so the next prompt does not pause for it. The summarizing work happens ahead of time, while you are still working, rather than at the moment you send the next prompt.
There is a cost to know about. A background summary that ends up unused still costs tokens, because the summary was written before anyone knew whether the session would reach compaction. If that trade does not suit you, set compaction.background: false to turn the feature off and go back to summarizing when compaction actually happens. The older experimental.background_compaction setting is removed, so move any configuration that used it to the new setting.
OpenCode reads CLAUDE.md again
Instruction files get a fallback that many existing projects already rely on. OpenCode again reads CLAUDE.md in any directory that has no AGENTS.md, and it falls back to ~/.claude/CLAUDE.md when the global AGENTS.md is missing. The same handling applies to instructions found when the agent reads nested files, so a project that kept its instructions in CLAUDE.md form does not need to duplicate them into a second file just to have them picked up.
If you would rather OpenCode skipped those files, set OPENCODE_DISABLE_CLAUDE_CODE or OPENCODE_DISABLE_CLAUDE_CODE_PROMPT. Either variable skips every CLAUDE.md, which is the cleaner choice for a project that maintains its own AGENTS.md everywhere and does not want a stray file from another tool changing the instructions a session follows.
GPT 6.2 models, plugin updates, and a flatter websearch
Signing in with ChatGPT brings new choices to the model picker: GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up there. If you use a ChatGPT sign-in, look for them where you already pick models rather than in a separate setup step.
Plugins get a maintenance route inside the app. You can check for and install plugin package updates from Settings: open Settings > Extensions, click Check for updates, then click Update on any plugin that has a new version. Finally, websearch now returns a flat list of results, each with its url, title, content and published date.
What to do
- Let long commands finish. A build or test run that hits its timeout now continues in the background and reports back, so wait for its result instead of restarting it.
- Check any timeout: 0 setting. In the foreground it now means the default 120 seconds, not an unlimited wait.
- Decide on background compaction. It is on by default and removes the pause before the next prompt, but an unused summary still costs tokens; set
compaction.background: falseif you prefer to pay only when compaction happens. - Sort out instruction files. A
CLAUDE.mdis read where noAGENTS.mdexists; setOPENCODE_DISABLE_CLAUDE_CODEorOPENCODE_DISABLE_CLAUDE_CODE_PROMPTif you want those files skipped. - Update plugins in Settings. Go to Settings > Extensions, use Check for updates, and click Update where a new version is offered.
The next release in this line is covered in the page linked below.
Related playbooks
- Baseten Sandboxes keep agents running for days
- OpenCode 2.3.0: subagents move to the background
- Claude Code 2.1.332 adds MCP skills and a shell hook
- Move OpenCode 1.x to 2.0 without losing config
Sources
- OpenCode v2.3.1 release notes — GitHub — timed-out shell commands moving to the background in every build, the removed shell_timeout_background flag, timeout: 0 meaning the default 120 seconds, background compaction on by default with compaction.background: false to disable it, CLAUDE.md reading and its disable variables, GPT 6.2 Sol and Astra in the model picker, plugin updates in Settings, and the flat websearch result list.
Back to: Coding playbooks hub · Also: OpenCode 2.3.2 stops re-billing the system prompt