Release

OpenCode v2.4.5: resilient MCP servers, the new Question UI, and run-now automations

OpenCode v2.4.5 keeps MCP servers usable through dropped connections, turns the new Desktop Question UI on by default, and adds run-now for timer automations.

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

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:

In the desktop app:

In the SDK:

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:

In the desktop app:

In the SDK:

For the full list of changes, see the v2.4.5 release notes, and follow the release feed for the next tag.

溯源: https://github.com/anomalyco/opencode/releases/tag/v2.4.5

继续探索