Skip to content

v2.4.5

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 23:55
· 16 commits to dev since this release
Immutable release. Only release title and notes can be modified.

Highlights

  • 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. (#67926, #67899)
  • New Question UI in Desktop: 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. Turn it off in Settings > Experimental. (#68047)
  • 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. (#68034)

Core

Improvements

  • MCP servers stay usable through dropped connections: tools stay listed, the next call reconnects, failed first starts retry, and saved tool listings let new sessions start without waiting for slow servers. A server that's gone (a missing command, or a URL that answers 404 or 410) is dropped instead of retried. The mcp_resilience flag was removed. (#67926, #67899, #67913, #67896, #68357)
  • 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. (#68099)
  • Bundled ripgrep 16.0.0 with releases and put it on the shell tool's PATH. (#66856)
  • 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 now lists namespaces and pinned tools, and the model finds other tools with search. (#68086)

Bug fixes

  • Fixed 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. (#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 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)
  • SAP AI Core accepts both of its package names. Thanks @jerome-benoit. (#67848)

TUI

Improvements

  • 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're in. (#68268)
  • Markdown math renders in replies: `$…# v2.4.5 release review

Range: v2.4.4..6428330d6a (179 commits). Suggested bump: patch.

Changelog

Highlights

  • 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. (#67926, #67899)
  • New Question UI in Desktop: 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. Turn it off in Settings > Experimental. (#68047)
  • 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. (#68034)

Core

Improvements

  • MCP servers stay usable through dropped connections: tools stay listed, the next call reconnects, failed first starts retry, and saved tool listings let new sessions start without waiting for slow servers. A server that's gone (a missing command, or a URL that answers 404 or 410) is dropped instead of retried. The mcp_resilience flag was removed. (#67926, #67899, #67913, #67896, #68357)
  • 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. (#68099)
  • Bundled ripgrep 16.0.0 with releases and put it on the shell tool's PATH. (#66856)
  • 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 now lists namespaces and pinned tools, and the model finds other tools with search. (#68086)

Bug fixes

  • Fixed 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. (#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 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)
  • SAP AI Core accepts both of its package names. Thanks @jerome-benoit. (#67848)

TUI

Improvements

  • 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)
    and \(…\) inline, $…$ and \[…\] as display math. Plugins can supply the inline renderer with context.markdown.registerInlineMathRenderer. (#68341)

Bug fixes

  • @file#7 attaches only line 7. Use @file#7- for line 7 to the end of the file. (#68332)
  • 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. (#68098, #68085, #68005)
  • opencode serve --port rejects out-of-range ports with a clear error. (#67711)

Desktop

Improvements

  • The New question UI is now on by default: answer with a click, a number key or by typing, with Markdown questions and answers checked before sending. Thanks @Pablo-aps. (#68047, #67999, #67989, #68026)
  • The model picker and provider settings show each OpenCode workspace provider under the name Console sends, in a flat list. (#68180)
  • Run an automation now from the automations list, edit the pairing address when pairing a device, and see when a response was sent by hovering its duration. (#68034, #67733, #67995)
  • Added a setting to turn off automatic update checks, and turned on smooth scrolling by default on Linux. (#68277, #68148)
  • Screen readers can use composer suggestions. (#67958)
  • Corrected Korean translations and unified their terms. Thanks @hyungraekim-bagelcode. (#67274)

Bug fixes

  • Signing in to OpenCode no longer waits 10 seconds or says models are still loading. (#68180, #68183)
  • On Windows, a staged update is no longer unpacked on every start, and delta updates download correctly. (#68288, #68276)
  • Long permission lists scroll, and a new permission request no longer replaces the one on screen. (#68043, #68250, #68139)
  • Rich text copied from Office apps pastes as text, the vertical tabs sidebar remembers its width, and the Inbox no longer loads archived sessions. (#68197, #68275, #68171)
  • Catalog reads retry after a timeout, a session whose creation failed is cleaned up, and cron descriptions stay correct for partial-hour minute lists. (#68102, #68093, #68052)

SDK

Improvements

  • Server plugins can list, create, read, answer and cancel session forms through session.form. (#67863)
  • Experimental: run a timer automation now with client.experimental.automation.run, and filter the blob list by mime type with mime. (#68034, #68315)
  • Experimental push callbacks accept any https relay. The SDK's experimental.push.relays option and OPENCODE_EXPERIMENTAL_PUSH_RELAYS were removed. (#68153)

Bug fixes

  • A duplicate permission request ID returns 409 Conflict instead of 500, and importing a session with existing message IDs returns 409. (#68073, #68074)
  • The client reports server startup failures even when a child process keeps stderr open. (#68281)