opencode-map
← /news
Dec 4, 2026release

opencode v2.4.5: MCP servers survive dropped connections, the Desktop question UI lands by default, and timer automations gain run-now

v2.4.5 continues the npm-leads pattern recorded for v2.4.0 through v2.4.4 on the same UTC clock: @opencode/cli 2.4.5 published to npm at 2026-12-04T23:52:25Z (latest now reads 2.4.5 at this site’s 2026-12-06 check), two minutes and forty-two seconds ahead of the GitHub release page (2026-12-04T23:55:08Z). The GitHub release body is the canonical changelog copy, and CHANGELOG.md at dev HEAD carries the matching section stamped ## v2.4.5 — 2026-12-04 (live-fetched 2026-12-06).

Highlights: MCP servers survive drops, the question UI on by default, and run-now automations

Three headline changes span plugins, Desktop, and scheduling. When an MCP server drops, its tools stay listed and available, the next call reconnects, failed first starts retry, and each server’s saved tool listing lets new sessions start without waiting for slow servers — while a server that is really gone (a missing command, or a URL answering 404 or 410) is dropped instead of retried, and the mcp_resilience flag was removed (#67926, #67899, #67913, #67896, #68357). Desktop’s new question UI — answer an agent’s question with a click, a number key, or your own typed answer, with Markdown in the question and answers checked before they are sent — is now on by default, with the off switch still in Settings > Experimental (#68047). And timer automations gain a Run now button: click Run now next to Pause on an active automation to run it right away, counting as a normal run while the schedule itself does not move (#68034).

Core: model fallback, unsigned thinking, and Code Mode

With no default model configured, opencode run without -m — plus ACP and API clients that do not name a model — now uses the model of your most recent session, and a session keeps the model it last ran on (#68099). Anthropic-compatible endpoints that stream thinking without a signature (GLM, DeepSeek and others) keep their thinking across turns; if an endpoint rejects it, OpenCode retries once without it, and the new compatibility.requireSignature setting forces either behavior (#68182, #68062). The Code Mode catalog lists namespaces and pinned tools, and the model finds other tools through search (#68086). Releases bundle ripgrep 16.0.0 and put it on the shell tool’s PATH (#66856).

Core fixes are anchored by the MCP reconnect and sign-in cluster: “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 are all fixed (#67897, #67895, #67997, #67900, #67902, #67901, #67991, #68053, #68068). 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 (#68079, #68077, #68075, #68113). 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 (#67880, #68090, #68080). 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 (#68100, #68122, #68097). The shell tool honors cwd as workdir, and the patch tool keeps a trailing blank line (#68184, #68106). Worktree refresh and removal work when the project checkout is gone, and a worktree whose start command fails is rolled back (#67891, #68108). OpenAI-compatible providers without a baseURL now report a configuration error for image, embedding and decision models instead of sending your key to another host (#68174). The automation scheduler survives storage failures (#68145), a .opencode folder inside the global config directory (~/.config/opencode/.opencode) now loads (#68342), Code Mode // @input: blocks accept loose spacing and unquoted or double-quoted tags instead of running their text as code (#68369), and SAP AI Core accepts both of its package names (#67848).

TUI: math rendering and file-line attachments

opencode and opencode mini accept -p as a short form of --prompt (#68021), opencode api streams responses as they arrive and stops cleanly when piped to head (#67856), Mermaid diagrams fit the width of the markdown they are in (#68268), and Markdown math renders in replies — $…$ and \(…\) inline, $$…$$ and \[…\] as display math — with plugins able to supply the inline renderer through context.markdown.registerInlineMathRenderer (#68341). On the fixes side, @file#7 now attaches only line 7, with @file#7- covering line 7 to the end of the file (#68332); redo no longer 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 (#68098, #68085, #68005); and opencode serve --port rejects out-of-range ports with a clear error (#67711).

Desktop and SDK

Beyond the question UI default, Desktop’s model picker and provider settings show each OpenCode workspace provider under the name Console sends, in a flat list (#68180); the automations list gains run-now alongside editing the pairing address when pairing a device and hover timestamps on response durations (#68034, #67733, #67995); a new setting turns off automatic update checks while smooth scrolling turns on by default on Linux (#68277, #68148); screen readers can use composer suggestions (#67958); and Korean translations are corrected and unified (#67274). Desktop fixes cover sign-in no longer waiting 10 seconds or claiming models are still loading (#68180, #68183), Windows staged updates no longer unpacking on every start with delta updates downloading correctly (#68288, #68276), long permission lists scrolling without a new request replacing the one on screen (#68043, #68250, #68139), rich text from Office apps pasting as text while the vertical tabs sidebar remembers its width and the Inbox stops loading archived sessions (#68197, #68275, #68171), and catalog reads retrying after timeouts as session-creation failures clean up and cron descriptions stay correct for partial-hour minute lists (#68102, #68093, #68052).

The SDK round-trips the automation work: server plugins can list, create, read, answer and cancel session forms through session.form (#67863), an experimental client.experimental.automation.run runs a timer automation now while the blob list filters by mime (#68034, #68315), and experimental push callbacks accept any https relay — the experimental.push.relays option and OPENCODE_EXPERIMENTAL_PUSH_RELAYS are removed (#68153). Duplicate permission request IDs and session imports with existing message IDs return 409 Conflict instead of 500 (#68073, #68074), and the client reports server startup failures even when a child process keeps stderr open (#68281).

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