opencode v2.1.4 surfaces MCP input forms, moves compaction to the background, and clears five MCP protocol snags
v2.1.4 published on @opencode/cli on October 23, 2026 (npm latest moved at 10:13 UTC) — again with no GitHub release page — so this article reads the official changelog entry at opencode.ai/changelog and the identical v2.1.4 section of CHANGELOG.md on the dev branch HEAD (both fetched 2026-10-23/24). It is an MCP-heavy release: outside the two highlights, five of its fixes live in the extensions layer.
Highlights: forms instead of timeouts, compaction off the critical path
MCP Input Forms Now Appear (#58184, #58305): when an MCP server asks for input during a tool call, the form now shows up instead of the call waiting until it times out. Desktop and web can show these forms too, with controls for text, number, choice, multiselect, boolean, and URL requests. Background Compaction (#57444, #58294): setting experimental.background_compaction to true prepares a summary in the background as a session nears its compaction threshold, so automatic compaction does not wait for it — with the noted trade-off that summaries that are never used still cost tokens.
Core: smarter compaction, a documented plugin, a heap-dump command
When a compaction request exceeds the provider limit, older tool output and exchanges are now shortened first, so more useful history survives (#58015). ChatGPT sign-in context caps are now a documented built-in plugin — add "-opencode.provider.openai-context-caps" to plugins to turn them off (#58194) — and opencode debug heap-dump [--server <url>] captures a running server’s heap without restarting it (#58252). The core fixes: sessions without their own model now use the selected agent’s model (#58355); compaction buffers that leave the model no room are ignored, and more provider context-overflow errors are recognized (#58313, #57982); agent files that use V2-only fields are read as V2 agents (#58218); Codex models that ChatGPT accounts reject are now hidden (#58180); and imported V1 global sessions are attributed to the correct project (#56322).
TUI and Desktop
The TUI gains an experimental TUI tools option in the experiments dialog, letting agents open and type into the session terminal through tui_open_terminal and tui_write_terminal without taking keyboard focus (#57506), and tells you to start OpenCode again after an update restart (#58139). Rows containing Unicode direction marks — common in Hebrew and Arabic text — no longer shift one column during partial redraws (#58380). Desktop adds Capture heap snapshots to the command palette, saving app-window, main-process, and server snapshots together in Downloads with native-memory, GPU, and page diagnostics (#58259, #58311); its fixes put file change counts before their labels in review and file summaries (#58353) and stop Linux AppImage executable names ending in .desktop (#58263).
SDK and Extensions
The SDK adds connectClientMcp() for hosting MCP tools in a client over the experimental client MCP WebSocket transport (#57504, #57505). The extensions layer absorbs the rest of the MCP repair work: elicitation forms appear during tool calls (#58184), MCP OAuth login keeps waiting after unrelated requests reach its callback (#58342), remote MCP requests stay open past Bun’s fetch idle timeout (#58341), servers started during initial reconciliation are no longer duplicated and stop in parallel on shutdown (#58349, #58351), and tools whose output schema is not a root object are accepted (#58224).
source: https://opencode.ai/changelog