Release

OpenCode v2.3.1–v2.3.2: timed-out commands keep running, background compaction, and GPT 6.2 for ChatGPT users

OpenCode v2.3.1 moves timed-out shell commands and compaction to the background and adds GPT 6.2 to ChatGPT sign-in; v2.3.2 fixes GPT-6.2 prompt caching.

Three tagged OpenCode releases shipped since v2.3.0: v1.19.6 on November 17 on the 1.x line, then v2.3.1 and v2.3.2 on November 18 on the current line. Two of the v2.3.1 headlines change defaults for everyone: a shell command that is still running when its timeout expires now moves to the background instead of being killed, and as a session nears automatic compaction, the summary is written in the background so your next prompt doesn’t pause for it. GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT, the desktop app can update plugins from Settings › Extensions and lets you comment on selected code, and the same-day v2.3.2 fixes GPT-6.2 prompt caching that re-billed the system prompt as uncached input on every step.

Timed-out shell commands keep running

A shell command still running when its timeout expires now moves to the background instead of being killed, so long builds and test runs finish and report back (improvement). This applies in every build: the shell_timeout_background flag is gone, and configs that still set it keep loading. A foreground timeout: 0 now uses the default 120 second timeout instead of waiting until the command exits (improvement).

Compaction without the wait

As a session nears automatic compaction, the summary is now written in the background, so your next prompt doesn’t pause for it. Background compaction is now on by default; turn it off with compaction.background: false. A background summary that is never used still costs tokens, and the experimental.background_compaction setting is removed (improvement).

GPT 6.2 with ChatGPT sign-in

GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT (improvement).

GPT-6.2 prompt caching, fixed in v2.3.2

GPT-6.2 models don’t cache a system prompt sent in the Responses instructions field, so every step re-billed it as uncached input. OpenCode now sends it as a leading developer message on every Responses route, including OpenAI (API key and ChatGPT sign-in), GitHub Copilot, Zen, Azure and OpenRouter, so it is cached from the second step on (bugfix). On GitHub Copilot gpt-6.2-sol, uncached input per step dropped from about 14,000 tokens to 3, and compaction through /responses/compact now reads the same cached prefix (bugfix). webfetch structured output no longer repeats the url and format it was called with (bugfix).

Desktop: update plugins from Settings and comment on selected code

You can check for and install plugin package updates from Settings › Extensions: click Check for updates to look for new versions, then click Update on any plugin that has one (improvement).

Selecting code in diff and file viewers now just selects it, so you can copy it, and an Add comment toolbar appears beside the selection; line numbers and the gutter + still start a comment directly (improvement).

OpenCode 1: the upgrade offer arrives

OpenCode 1 now offers the upgrade to OpenCode 2.0 (improvement). OpenCode 2 downloads in the background and installs only when you choose: Restart to upgrade, Upgrade on quit, or Later. Your sessions, projects, and settings are kept, and plugins made for OpenCode 1 need an update.

This v1.19.6 release also fixes sessions with many images sending oversized requests: when the images in a session’s history pass 25 MiB, the oldest are replaced with a placeholder (bugfix).

How to use

Also worth knowing

Core fixes and smaller changes:

In Code Mode:

In the TUI:

In the desktop app:

In the SDK:

In extensions:

For the full list of changes, see the v2.3.1 release notes, the v2.3.2 release notes and the v1.19.6 release notes, and follow the release feed for the next tag.

Source: https://github.com/anomalyco/opencode/releases

Keep exploring