opencode-map
← /news
Nov 6, 2026release

opencode v2.2.6 ships shared MCP connections and a reworked noninteractive run — with release notes moving to the GitHub release

v2.2.6 published on @opencode/cli at 23:33 UTC on November 6, 2026 (the release: v2.2.6 commit landed 44 minutes earlier at 22:49 UTC; the GitHub release page at 23:37 UTC — all one clock). What is new about the packaging this time is the documentation: CHANGELOG.md at the dev branch HEAD still ends at v2.2.5 (fetched 2026-11-08), and the same day’s commits remove “the retired changelog service” (#62382) — so the GitHub release page, which carries full highlights and per-area notes, is now the canonical notes surface (opencode.ai/changelog also lists v2.2.6). This article follows the v2.2.1–2.2.5 window, covered earlier on this site.

Scripted runs: worktrees, archives, and background waits

opencode run -w starts the session in a new git worktree, with --worktree=<name> to name it (not combinable with --continue or --session) (#60712), and opencode run --archived creates the session already archived, keeping scripted and CI runs out of the inbox, home, and session lists — archived sessions are hidden from the TUI list and skipped by --continue (#61270). The noninteractive execution itself is reworked (#61911): opencode run now waits for the background shells, subagents, and image jobs its prompt started and lets the model respond to their results before exiting, printing waiting for N background job(s) (a background_wait event with --format json). There is no time limit — a dev server or file watcher keeps the run open until Ctrl+C or SIGTERM, so set a timeout on CI jobs; SIGTERM cancels the session and its background jobs and exits with code 143.

Shared MCP connections and plugin surfaces

MCP servers can turn on connection pooling with pool: true, sharing one connection across projects with the same setup for fewer processes and faster starts (#61185); servers still connecting get a 2-second wait before a model call, local working directories expand ~, and dynamic registration sends logo_uri (#60490). GUI plugins gain color themes through the Theme registry (#61485), CodeBlock/CodeBlockAction registries for custom fenced-code rendering and actions (#61533), ctx.ui.Select plus native-looking settings and menu components (#61527), and persistable side-panel widths (#61509) — with plugin dialogs, Markdown renderers, and terminal views isolated so failures do not take down their host surface (#62110). The web/desktop app adds a mobile composer dock with 44px touch targets (#61773), unread-session grouping in the Inbox and failed-run indicators on tabs (#61691, #62077), dates instead of “Xd ago” for sessions 7 or more days old (#62314), and a prompt history that keeps up to 200 prompts (#62313).

Security and reliability hardening

File reads and media from the server API are served as sandboxed downloads, and cross-site navigations plus disallowed-origin requests to /api/* are refused, so a project file cannot run scripts on the server’s origin (#62422). Webfetch and Code Mode fetch reject URLs containing credentials, ignore the #fragment when matching permission rules, and check every redirect (#60502, #62373); session_move asks for external_directory permission before leaving the project (#62204). Console config requests time out after 5 seconds so startup no longer hangs (#62404), provider requests retry while their host is unreachable (#61880), legacy custom providers with partial limit values are kept instead of dropped (#62240), and npm upgrade install scripts are allowed again (#51554).

Experimental flags and TUI polish

An experimental bytecode VM for Code Mode arrives off by default — experimental.codemode_vm: true or OPENCODE_FLAGS=codemode_vm (#62358) — alongside a feature-flag registry (#61825) with OPENCODE_FLAGS=all to flip every flag on (#61826), a websearch.use policy action (#61557), provider- and model-specific session warming with interval: "auto" keyed to cache TTL (#60025), Azure Messages support for Foundry Claude models (#60934), and Microsoft Store PowerShell 7 detection on Windows (#61952). The TUI gains Scroll on send with a session.submit_scroll: "keep" option to retain your reading position (#61460), Ctrl+Z suspension while a form or dialog is open (#62118), keypad Home/End/PageUp/PageDown transcript navigation under the kitty keyboard protocol (#59770), and transcript jumps in subagent sessions (#60817). For scale: the tag compare v2.2.5…v2.2.6 reports the branch 515 commits ahead, and GitHub caps the visible listing at 250 — the release body is the authoritative per-feature record.

source: https://github.com/anomalyco/opencode/releases/tag/v2.2.6