OpenCode v2.4.5 shipped on December 4 (UTC), the first tagged OpenCode release after the early-December weekly digest closed out v2.4.4. MCP servers keep their tools when a connection drops, the new Question UI in Desktop is on by default, and an active timer automation can be run right away. When no default model is configured, OpenCode now falls back to the model of your most recent session, and fix batches land across Core, the TUI, Desktop, and the SDK.
MCP servers survive dropped connections
When an MCP server drops, its tools stay available and reconnect on the next call, and new sessions start with each server’s saved tool list instead of waiting for it to connect (improvement). Tools stay listed, failed first starts retry, and saved tool listings let new sessions start without waiting for slow servers (improvement). A server that’s gone — a missing command, or a URL that answers 404 or 410 — is dropped instead of retried, and the mcp_resilience flag was removed (improvement).
This release also fixes several MCP reconnect and sign-in problems: “no valid session ID” replies, a 401 after a token refresh, a rejected early refresh signing you out, sign-ins from another process, stdio servers hanging on close, tool calls resent after a reconnect, and lost replies waiting for the deadline (bugfixes).
The new Question UI in Desktop, on by default
Answer an agent’s questions with a click, a number key or by typing your own answer, with Markdown in the question and answers checked before they’re sent (improvement). The new question UI is now on by default; turn it off in Settings > Experimental. Thanks @Pablo-aps.
Run an automation now
Click Run now next to Pause on an active timer automation in Desktop to run it right away — it counts as a normal run, and its schedule doesn’t move (improvement). The automations list gets the same Run now action (improvement), and the SDK adds experimental client.experimental.automation.run for running a timer automation now (improvement).
Model defaults follow your most recent session
With no default model configured, opencode run without -m, ACP and API clients that don’t name a model now use the model of your most recent session, and a session keeps the model it last ran on (improvement).
Thinking kept across turns on Anthropic-compatible endpoints
Anthropic-compatible endpoints that stream thinking without a signature (GLM, DeepSeek and others) keep their thinking across turns (improvement). If an endpoint rejects it, OpenCode retries once without it, and the new compatibility.requireSignature setting forces either behavior (improvement).
How to use
- Resilient MCP servers: update to v2.4.5 — a dropped server’s tools stay listed and reconnect on the next call, new sessions start from the saved tool list, and the
mcp_resilienceflag was removed. - Answer questions in Desktop: the new question UI is on by default — answer with a click, a number key or typed text; turn it off in Settings > Experimental.
- Run an automation now: in Desktop, click Run now next to Pause on an active timer automation, or run it from the automations list.
- Use your recent model: with no default model configured,
opencode runwithout-mpicks up the model of your most recent session. - Update: run
opencode upgrade(when available), or see the v2.4.5 release notes for the full list of changes.
More improvements in this release
Core: bundled ripgrep 16.0.0 ships with releases and is on the shell tool’s PATH (improvement); the Code Mode catalog now lists namespaces and pinned tools, and the model finds other tools with search (improvement).
In the TUI:
opencodeandopencode miniaccept-pas a short form of--prompt(improvement).opencode apistreams responses as they arrive and stops cleanly when piped tohead(improvement).- Mermaid diagrams fit the width of the markdown they’re in (improvement).
- Markdown math renders in replies:
$…$and\(…\)inline,$$…$$and\[…\]as display math; plugins can supply the inline renderer withcontext.markdown.registerInlineMathRenderer(improvement).
In the desktop app:
- The model picker and provider settings show each OpenCode workspace provider under the name Console sends, in a flat list (improvement).
- Edit the pairing address when pairing a device, and see when a response was sent by hovering its duration (improvements).
- A setting turns off automatic update checks, and smooth scrolling is turned on by default on Linux (improvements).
- Screen readers can use composer suggestions (improvement).
- Korean translations are corrected and their terms unified (improvement). Thanks @hyungraekim-bagelcode.
In the SDK:
- Server plugins can list, create, read, answer and cancel session forms through
session.form(improvement). - Filter the blob list by mime type with
mime(improvement). - Experimental push callbacks accept any https relay; the SDK’s
experimental.push.relaysoption andOPENCODE_EXPERIMENTAL_PUSH_RELAYSwere removed (improvement).
Fixes in this release
Core: declining a permission ends the turn cleanly, a failed tool call stops its parallel siblings, and interrupted or broken provider streams no longer leave steps open (bugfixes); queued prompts stay queued when a restart resumes a turn, moving an idle session no longer wakes it, and deleting or moving a session cancels its pending forms and permission requests (bugfixes); a session’s summary is rebuilt after a revert, a manual rename survives title regeneration, and sessions loaded mid-stream show the text streamed so far (bugfixes); the shell tool honors cwd as workdir, and the patch tool keeps a trailing blank line (bugfixes); worktree refresh and removal work when the project checkout is gone, and a worktree whose start command fails is rolled back (bugfixes); OpenAI-compatible providers without a baseURL report a configuration error for image, embedding and decision models instead of sending your key to another host (bugfix); the automation scheduler survives storage failures (bugfix); a .opencode folder inside the global config directory (~/.config/opencode/.opencode) now loads (bugfix); Code Mode // @input: blocks accept loose spacing and unquoted or double-quoted tags instead of running their text as code (bugfix); SAP AI Core accepts both of its package names (bugfix). Thanks @jerome-benoit.
In the TUI:
@file#7attaches only line 7; use@file#7-for line 7 to the end of the file (bugfix).- Redo removes the prompt text undo restored, a single Esc no longer arms the next run to interrupt, and Windows paths pasted in WSL attach the file (bugfixes).
opencode serve --portrejects out-of-range ports with a clear error (bugfix).
In the desktop app:
- Signing in to OpenCode no longer waits 10 seconds or says models are still loading (bugfixes).
- On Windows, a staged update is no longer unpacked on every start, and delta updates download correctly (bugfixes).
- Long permission lists scroll, and a new permission request no longer replaces the one on screen (bugfixes).
- Rich text copied from Office apps pastes as text, the vertical tabs sidebar remembers its width, and the Inbox no longer loads archived sessions (bugfixes).
- Catalog reads retry after a timeout, a session whose creation failed is cleaned up, and cron descriptions stay correct for partial-hour minute lists (bugfixes).
In the SDK:
- A duplicate permission request ID returns 409 Conflict instead of 500, and importing a session with existing message IDs returns 409 (bugfixes).
- The client reports server startup failures even when a child process keeps stderr open (bugfix).
For the full list of changes, see the v2.4.5 release notes, and follow the release feed for the next tag.