Skip to content

Releases

v2.4.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 15:57
Immutable release. Only release title and notes can be modified.

Highlights

  • macOS 12 Session Fix: OpenCode can save assistant messages again on the older SQLite version included with macOS 12. (#65771)
  • Config-Only Providers Show Their Models: Providers you set up only in your config, such as Ollama, now show their models in /models without a /connect login. (#65793)
  • Unread /btw Answers: When a side question finishes behind another side-panel tab, its tab shows an unread dot until you open it. (#65821)

Core

Improvements

  • With experimental.model_speeds enabled, model service tiers are exposed as remembered speeds instead of separate model-picker entries. (#65749)

Bug fixes

  • Fixed assistant messages failing to save on macOS 12 because its system SQLite does not support the JSON operator used in v2.4.0. (#65771)
  • Fixed compaction retaining more recent history than keep.tokens, including when a single newest message already exceeds the allowance. (#65768)
  • Fixed occasional extra cache cost in long goal sessions after a compaction. (#65788)

TUI

Improvements

  • With experimental.model_speeds enabled, /speed and /fast list the current model’s service tiers and relative prices. The speed.list and speed.cycle keybinds are available without default bindings. (#65749)

Bug fixes

  • Fixed /models hiding models from config-only providers such as Ollama when no /connect login exists. (#65793)

Desktop

Improvements

  • With experimental.model_speeds enabled, models with service tiers have a speed dropdown beside the variant selector; /speed cycles through the available speeds. (#65749)
  • Layout choices in Settings now use consistent navigation-card previews and accent styling. (#65757, #65800)

Bug fixes

  • Fixed /btw answers completed behind another side-panel tab providing no unread indication. The tab now shows a dot until viewed. (#65821)
  • Fixed the timeline, Home list, file viewers and tool output adding invisible or oversized stops to keyboard Tab navigation. They remain focusable by clicking for keyboard scrolling. (#65758, #65785)
  • Fixed unwanted focus rings around clicked Settings pages, error details, What’s New and the terminal, and corrected the split button’s focus-ring corners. (#65783, #65785)
  • Fixed folder paths showing middle-truncation markers unnecessarily at fractional UI zoom levels. (#65225)

SDK

Bug fixes

  • An aborted shared event subscription now stops immediately even when the source has already completed or failed with buffered events remaining. Thanks @chirag127. (#65441)

Extensions

Improvements

  • Effect and Promise plugins can create, list and delete automations through ctx.experimental.automation.{create,list,delete}. (#65747)
  • @opencode/plugin now supports @opentui/core and @opentui/solid from version 0.8.0, allowing plugins capped below OpenTUI 0.9 to install again. (#65819)

v2.4.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 09:22
Immutable release. Only release title and notes can be modified.

Highlights

  • Built-In Desktop Browser: Import your sign-ins and browsing history from Chrome, Edge, Firefox or Safari, and add extensions from Chromium browsers or the Chrome and Edge stores. Everything stays in one persistent desktop profile: chat links open signed in, your tabs survive restarts and the agent can read and drive the same pages without you switching apps. (#63002, #65073)
  • Automations: Ask the agent to run a prompt, a script or a shell command on a timer, on a cron schedule or when an MCP server sends an event, and manage them with /automation. Set "automations": false in your config if you don't want them. (#65296, #65186)
  • Generate Videos: When a connected provider has a video model, the agent can make videos with generate_video. It keeps working while the video renders and saves the files into your workspace when they're ready. (#63666, #65664)
  • New TUI Look: The TUI's new designs are on by default, and the opencode theme is the new one. Pick opencode-classic in Theme to keep the previous colors. (#64988)
  • Windows Taskbar Status: On Windows, the taskbar button shows session progress, counts sessions that need you and flashes when a permission or question is waiting. (#65317, #65318, #65319)

Upgrade notes

  • Image tool renamed. experimental_image_generate is now generate_image. Permission rules with the old name are mapped automatically, but saved "always allow" approvals are not, so it asks again once. (#65682)
  • Plugins that follow a version now update on their own. A plugin written as name@latest, a version range (such as name@^1.2.0), a Git branch or a Git semver: range is checked on startup and every 24 hours, and a newer match is installed and reloaded. Ranges never leave their range, and if a new version fails to load the previous one keeps running. A bare name, an exact version, another tag such as @next, a Git tag or a commit hash doesn't update itself; opencode plugin update still updates those by hand. (#64764, #65052, #65056)
  • GitHub Copilot no longer reads GITHUB_TOKEN. Set COPILOT_GITHUB_TOKEN or sign in with OAuth. (#64697)
  • MCP servers are tried on the newest protocol first. A server without a protocol setting is probed before falling back to the legacy handshake. Set protocol: "legacy" on a server that misbehaves. (#65282)
  • The TUI opencode theme changed. It now means the new theme; set opencode-classic for the previous look, and experimental["new-designs"]: false in your TUI config for the previous designs. (#64988)
  • Chat links open in the browser pane. In the desktop app, web links from the chat open beside the conversation. Modifier-click a link to open it in your system browser. A browser deny in your permission rules refuses every agent browser call. (#63002)
  • OpenCode Go connects through OpenCode. The connect dialogs and opencode auth login list one OpenCode option that includes Go models. OpenCode Go is only listed when a Go key is already saved, and saved keys keep working. (#65466)
  • New desktop shortcut. Cmd+Shift+S (Ctrl+Shift+S on Windows and Linux) now archives the open session. The composer's Cmd+U and Escape/Ctrl+G now follow the Attach file and Stop session shortcuts. (#65428, #64394)
  • Code Mode session tool paths moved. tools.opencode.session_rename and session_move are now tools.opencode.session.rename and .move. Direct tool names and permission actions are unchanged. (#65080)
  • TUI plugins need OpenTUI 0.9.4. @opencode/plugin requires @opentui/core and @opentui/solid 0.9.4 or later. Renderers passed to registerCodeBlockRenderer now receive an OpenTUI block (block.text) instead of a Markdown token; codeBlockStyle and escaped are gone. (#63989)
  • SDK: plugins load in the background again. Plugins are meant to load asynchronously, and the server never waits for them. In v2.2.7 the model, provider, generate.*, voice.* and websearch.query endpoints started waiting up to 5 seconds for plugins and returning 503 after that (#63040); this release removes that wait. Right after startup these endpoints answer with whatever has loaded, so a list can be empty or partial. Long-lived clients should refresh on the matching *.updated event, such as model.updated. One-shot scripts should wait on their side, for example by polling plugin.list until it returns plugins, or the endpoint until the entry they need appears. (#63814)
  • Desktop voice needs a matching server. The app reads each voice model's engine, which older servers don't report, so voice shows as unavailable against a server from before this release. (#65506)
  • Storage write path. Assistant parts are now saved as their own rows. experimental.part_rows: false restores the old path for this release. (#65039)

Core

Improvements

  • Added automations. Agents can schedule prompts, Code Mode scripts or fixed shell commands to run once, on an interval, on a cron schedule or when a connected MCP server pushes an event. Use the /automation command or the automation tools. A shell action asks for approval once, when it's created, and records each run's exit code and output. Set "automations": false to turn them off. (#65296, #65186, #65217, #65236, #65001, #65699)
  • MCP Events shipped: OpenCode follows the MCP Events beta for push delivery, with argument checks, heartbeats and automatic reconnects. An event too large for its prompt is skipped and its automation keeps running. (#65271, #65673)
  • MCP servers without a protocol setting now negotiate the newest MCP protocol and fall back to the legacy handshake. (#65282)
  • Agents can generate videos with generate_video whenever a connected provider has a video model. The job runs in the background, survives a server restart, saves the finished videos into the workspace and wakes the agent with their paths. Set a default model with experimental.video_generate.model. The image tool is now called generate_image. (#63666, #64546, #65664, #65682)
  • Plugins that follow a version (name@latest, a version range, a Git branch or a Git semver: range) are checked on startup and every 24 hours, and a newer match is installed and reloaded without a restart. A range stays within its range, and if a new version fails to load, the previous one keeps running. Other plugins still only report updates. (#64764, #65052, #65056)
  • The Claude Agent provider has a configDir setting for a Claude config folder other than the default. Given a list of folders, a chat moves to the next account when one hits its usage limit. Claude Agent sessions also show up in Claude Code as coming from opencode. (#62514, #65035, #65016)
  • Removing a Sign in with ChatGPT account, with opencode auth logout or the remove button in the app, now also revokes it with OpenAI. (#64947)
  • The ChatGPT plan model lists now come from models.dev, so new models show up without an OpenCode update. (#65579)
  • Voice models are now listed from models.dev, adding newer OpenAI models such as gpt-live-1.1. (#65491)
  • Reading far into a large file with read, or reading its tail, takes far fewer reads, which is much faster on remote workspaces. (#65611)
  • The shell tool's result says why a command ended without an exit code, and lists its output after the s...
Read more

v2.3.2

Choose a tag to compare

@github-actions github-actions released this 18 Nov 01:35
Immutable release. Only release title and notes can be modified.

Highlights

  • GPT-6.2 Prompt Caching: GPT-6.2 models don't cache a system prompt sent in the Responses instructions field, so every step re-billed it as uncached input. OpenCode now sends it as a leading developer message on every Responses route, including OpenAI (API key and ChatGPT sign-in), GitHub Copilot, Zen, Azure and OpenRouter, so it is cached from the second step on. (#64542, #64544)

Core

Bug fixes

  • Fixed GPT-6.2 models re-billing the system prompt as uncached input on every step. On GitHub Copilot gpt-6.2-sol, uncached input per step dropped from about 14,000 tokens to 3. Compaction through /responses/compact now reads the same cached prefix. (#64542, #64544)
  • webfetch structured output no longer repeats the url and format it was called with. (#64534)

v2.3.1

Choose a tag to compare

@github-actions github-actions released this 18 Nov 00:17
Immutable release. Only release title and notes can be modified.

Highlights

  • Timed-Out Shell Commands Keep Running: A shell command still running when its timeout expires now moves to the background instead of being killed, so long builds and test runs finish and report back. A foreground timeout: 0 now means the default 120 seconds. (#63699)
  • Compaction Without the Wait: As a session nears automatic compaction, the summary is now written in the background, so your next prompt doesn't pause for it. Set compaction.background: false to turn it off; a background summary that ends up unused still costs tokens. (#64290)
  • GPT 6.2 with ChatGPT Sign-In: GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT. (#64508)
  • Update Plugins from Settings: Open Settings β€Ί Extensions, click Check for updates, then Update on any plugin with a new version. (#64511)
  • Comment on Selected Code: Selecting code in diff and file viewers now just selects it, so you can copy it, and an Add comment toolbar appears beside the selection. (#64410)

Core

Improvements

  • Shell commands still running when their timeout expires now move to the background instead of being killed, in every build. The shell_timeout_background flag is gone; configs that still set it keep loading. A foreground timeout: 0 now uses the default 120 second timeout instead of waiting until the command exits. (#63699)
  • Background compaction is now on by default: as a session nears automatic compaction, the summary is written in the background so the next prompt doesn't wait for it. Turn it off with compaction.background: false; a background summary that is never used still costs tokens. The experimental.background_compaction setting is removed. (#64290)
  • OpenCode again reads CLAUDE.md in any directory that has no AGENTS.md, and falls back to ~/.claude/CLAUDE.md when the global AGENTS.md is missing. This also applies to instructions found when the agent reads nested files. Set OPENCODE_DISABLE_CLAUDE_CODE or OPENCODE_DISABLE_CLAUDE_CODE_PROMPT to skip every CLAUDE.md. (#64474, #64533)
  • Added GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, to the ChatGPT model list. (#64508)
  • websearch now returns a flat list of results, each with its url, title, content and published date. (#64471)
  • Code Mode and plugins get a simpler structured result from read: text (with offset, lineCount and next), directory (entry names) or media (a URI instead of base64). What the model sees is unchanged. (#64361)
  • Code Mode programs can use Node's Buffer for encoding and decoding bytes. (#64365)
  • In Code Mode, search("issues") now works as shorthand for search({ query: "issues" }). (#64347)
  • Code Mode tool summaries in the catalog can now be up to 500 characters instead of 120, so the model sees more of each tool's description. (#64341)
  • The glob and grep tools now report a malformed filename glob (for example [) as an error that names the parameter to fix, instead of returning no results. (#63960)
  • Server requests that crash now return a 500 with a readable JSON UnknownError body instead of an empty one. Storage problems name the cause (for example "Storage is full" or "Storage is read-only"); other crashes include a ref you can find in the server log. (#64022)
  • The shell tool description now tells the model that its session ID is in the OPENCODE_SESSION_ID environment variable. (#63718)
  • Experimental schedules are now automations, behind the automations flag (the old schedules flag still works). An automation runs on a time, an interval, a cron or a pushed MCP event, and either sends a prompt (to the creating session, another session or a new subagent) or runs a Code Mode program that decides whether to send one. Use /automation or the automation_* tools. Active or paused plain prompt schedules carry over; schedules with a condition or run limit, and finished ones, are dropped. (#64160)

Bug fixes

  • Fixed finished shell commands leaving zombie processes under opencode-pty. The process daemon now cleans each command up when it exits. Background processes started by a successful command (cmd &) keep running, and a failed command's leftovers are stopped. (#64266, #64251)
  • Fixed ChatGPT and OpenAI subscription logins losing their sharing-limit safeguards and context caps when a token refresh failed. (#64470)
  • Fixed Claude Agent models falling back to a 200K context window when Claude Code adds or renames a model. Thanks @Tarquinen. (#64107)
  • Fixed requests being rejected after switching models mid-session on OpenAI-compatible providers. Models that declare a different reasoning field (such as reasoning_content) no longer receive reasoning_details from earlier turns. (#64243)
  • Rejecting a permission request now rejects only the other pending requests from the same step, not every pending request in the session. (#64343)
  • Fixed a finished subagent being reported to its parent as still running when its answer quoted the "Background work still running" heading. (#64026)
  • Fixed ACP clients missing turns that a background shell woke after the original turn ended. (#64262)
  • Reading a small text file now applies the default line and byte limits, so a short file with very many lines is paged instead of returned whole. (#63810)
  • Paged reads that select a single blank line now return that line instead of an empty result. (#63809)
  • read now rejects limit: 0 with "Limit must be a positive integer". (#63808)
  • Text files that start with BM are no longer mistaken for BMP images, and only real GIF87a/GIF89a headers count as GIFs, so these files read as text again. (#63822, #63811)
  • Fixed shell output pages, grep previews, generated titles, read lines and shell output tails splitting emoji and other multi-byte characters, which showed up as οΏ½. (#63984, #63967)
  • Shell commands using unknown ANSI-C escapes such as $'\q' are now read the same way Bash and Zsh read them, so permission rules can match them. (#64263)
  • Session title search is now case-insensitive for non-ASCII letters, such as Cyrillic and accented text. (#64259)
  • Fixed grep results being dropped when a matching line or path is not valid UTF-8. Thanks @Tarquinen. (#62249)
  • The @ file picker now finds files in hidden folders such as .github/ and dotfiles such as .env.example when file search uses ripgrep (the default on Windows and outside git repos). .git and gitignored files stay excluded. Thanks @Tarquinen. (#62577)
  • An unreachable well-known integration source is now skipped instead of dropping every well-known source. Thanks @Tarquinen. (#62578)
  • A corrupt cached project ID is now ignored instead of being used. Thanks @Tarquinen. (#62576)
  • Plugin tool renames from tool.execute.before now apply to calls inside Code Mode programs, and a renamed call returns the new tool's structured result. (#63633, #64333)
  • In Code Mode, calling a tool that doesn't exist now returns a rejected promise, so .catch and Promise.allSettled can handle it instead of the whole script failing. (#64510)
  • A Code Mode program that only logs no longer shows a stray null line before its logs. (#64344)

TUI

Improvements

  • Permission prompts from a subagent, and from that subagent's own subagents, now appear while you view the subagent's session. Prompts also show in front of an open composer. (#64343)
  • The export dialog under the new designs can save to the system temp directory as well as the project folder. Thanks @Tarquinen. ([#62490](https://github.com/anomalyc...
Read more

v1.19.6

Choose a tag to compare

@github-actions github-actions released this 17 Nov 07:21
Immutable release. Only release title and notes can be modified.

Desktop

Improvements

  • OpenCode 1 now offers the upgrade to OpenCode 2.0. OpenCode 2 downloads in the background and installs only when you choose: Restart to upgrade, Upgrade on quit, or Later. Your sessions, projects, and settings are kept. Plugins made for OpenCode 1 need an update.

Core

Bugfixes

  • Sessions with many images no longer send oversized requests. When the images in a session's history pass 25 MiB, the oldest are replaced with a placeholder.
  • A provider error for a request body that is too large now starts compaction and a retry instead of failing the turn.

process-daemon v0.6.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 23:36
Immutable release. Only release title and notes can be modified.
03d848f

opencode-pty 0.6.0 (protocol 9) from packages/process-daemon, published to npm as @opencode/pty@0.6.0.

v2.3.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 08:55
Immutable release. Only release title and notes can be modified.

Highlights

  • Background Subagents by Default: Subagents now return immediately, continue in the background, and report back whenever they become idle. You can keep working in the parent session while multiple subagents run concurrently. (#63382)
  • Quieter Transcripts by Default: The TUI now summarizes each run of tool calls and thoughts into one collapsible activity row, so the answer is easier to follow. To see every step again, set Verbosity to medium or high in settings, or set session.verbosity in your TUI config; an existing setting is kept. (#63207)
  • Jump to an Earlier Prompt: In the desktop app, open Jump to message from the command palette or press Cmd+Alt+G (Ctrl+Alt+G on Windows and Linux) to search prompts across the current session and jump directly to one. (#63585)

Core

Improvements

  • Subagents now always run in the background, return their session ID immediately, and report results to their parent whenever they become idle. (#63382)
  • Added experimental support for MCP events, behind the mcp_events flag. (#63254, #63261, #63269)
  • Shell commands now survive server handoffs and keep their output when interrupted.
  • Added experimental support for moving a shell command to the background when its timeout expires, behind the shell_timeout_background flag. With the flag on, an explicit timeout on a background command stops it. (#63024, #63703)
  • Local Windows shell commands now run through the process daemon.
  • Added support for freeform tool input on compatible models.
  • Added LM Studio decision-model support.
  • Agents are now told when their session is a fork. Thanks @hasta84. (#63235)
  • Tool output truncation now keeps the beginning of the output and preserves a usable preview if the full output cannot be saved.
  • Tail reads no longer load the entire file into memory.
  • Providers can present a client certificate for gateways that require mutual TLS. Set settings.tls with cert, key and an optional passphrase on the provider; values accept {file:} and {env:} like apiKey. (#61832)
  • When a subagent goes idle while its own background work is still running, its report to the parent now says it is still running, so the parent waits for the final report instead of treating the partial answer as done. (#63675)
  • Code Mode gets simpler structured results from file and skill tools: write and edit return their confirmation as a string, patch returns an empty result, and skill returns the skill's directory and content. (#63616, #63635, #63618, #63623)

Bug fixes

  • Fixed case-only file renames in patches on case-insensitive filesystems.
  • Fixed stale thinking being retained after Claude Agent prompts or tools change.
  • Fixed directly driven child sessions not resuming after a restart.
  • Fixed plugin replacement stopping when cleanup of an earlier plugin fails.
  • Fixed MCP OAuth refreshes and localhost redirects when a server rewrites 127.0.0.1.
  • Fixed saved API keys being omitted from local-model discovery.
  • Local model discovery (Ollama, LM Studio, vLLM) waits up to 15 seconds per request instead of 1, so remote or tunnelled endpoints list their models, and a slow endpoint no longer delays other endpoints or config reloads. (#63700)
  • In Code Mode, calling a namespace as if it were a tool now suggests up to three real tools under it. (#63697)
  • Fixed retryable provider streams losing completed work when interrupted.
  • Fixed GitHub Copilot requests using the wrong endpoint before models finish loading.
  • Fixed exhausted request rate limits being treated as terminal. Thanks @Kyle-j-bush. (#59816)
  • Fixed LM Studio models with a null context length and accepted decision-type models. Thanks @tomzhu1024. (#56214)

TUI

Improvements

  • Transcript verbosity now defaults to low, which summarizes each run of tools and thoughts into one activity row. A session.verbosity you already set is kept. (#63207)
  • Session IDs found in messages can now be opened directly.
  • Activity tabs are clickable and open the correct view.
  • Shell mode has its own prompt color under the new designs.

Bug fixes

  • Restored pasted text when undo brings back its placeholder.
  • Restored the live draft after browsing prompt history.
  • Fixed copying a paste from within the prompt selection.
  • Preserved the Mini composer caret when closing the command palette.
  • Prevented image bytes from being retained in transcript storage when image previews are disabled.
  • Fixed paste-chip contrast across light and dark themes.
  • Fixed plugin-provided themes updating live.
  • Session lists now open at the top rather than at the current session.
  • Mini scrollback now shows the subagent card instead of obsolete launch instructions.

Desktop

Improvements

  • Added Jump to message to the command palette with Cmd+Alt+G / Ctrl+Alt+G, including prompts not yet loaded in the timeline. Thanks @usrnk1. (#63585)
  • Added the experimental Recent sessions sidebar, with cross-server recency, local pins, reordering, and standard session-row actions.
  • Recent sessions are limited to the last seven days and 30 rows, and can be hidden or muted.
  • Added an experimental customizable sessions sidebar.
  • Mermaid diagrams can now be maximized for zooming and panning. (#59250)
  • Added Alt+Enter to place a follow-up first in the queue and Mod+Enter to steer the next queued prompt.
  • Holding the modifier key now shows tab shortcut numbers.
  • Each server’s terminal shell can be selected from its menu.
  • Added a free-limit panel in place of the composer when applicable.
  • Session IDs are easier to find and copy.

Bug fixes

  • Recent sessions now keep stable recency ordering through list reloads, renames, and completed runs.
  • Fixed browser panes not retrying after server plugins finish loading.
  • Fixed mention suggestions being recreated while typing.
  • Fixed SSH prompts failing to advance or close after connection.
  • Fixed pasted provider-auth redirect URLs being rejected.
  • Restored message footers in the New timeline.
  • Fixed links whose labels contain inline code.
  • Fixed the desktop main process freezing while probing the login-shell environment.
  • Fixed the drag region after changing layout direction.
  • Fixed vertical-tab previews snapping to the wrong tab.
  • Fixed the file-tree sidebar opening animation.
  • Fixed pairing QR-code contrast in light themes. Thanks @ssskay. (#63220)
  • Fixed activity-tab navigation and click handling. Thanks @OpeOginni. (#60168)

SDK

Improvements

  • Event subscriptions can now receive experimental.mcp.event events from MCP event subscriptions.
  • Model capability schemas now advertise supported freeform tool-input formats.
  • Session throughput is now measured from the first streamed token.
  • Session creation documentation now clarifies the parentID field.

Extensions

Improvements

  • Promise-based tools can cooperatively stop through ToolContext.signal.
  • Added the experimental session.fork hook.
  • Promise plugin cleanup failures no longer prevent subsequent plugin replacements.
  • @opencode/plugin/effect now exports Tool, so an execute.before hook can reject a call with Tool.Error without importing @opencode/schema/tool. (#63698)

process-daemon v0.5.2

Choose a tag to compare

@github-actions github-actions released this 11 Nov 21:34
Immutable release. Only release title and notes can be modified.
532d099

opencode-pty 0.5.2 (protocol 8) from packages/process-daemon, published to npm as @opencode/pty@0.5.2.

v2.2.7

Choose a tag to compare

@github-actions github-actions released this 10 Nov 10:37
Immutable release. Only release title and notes can be modified.

Highlights

  • GitHub Copilot Auto: Pick Auto in the model picker when your Copilot account has an Auto pool, and Copilot's router chooses the model for each session at the Auto discount. If routing fails, OpenCode falls back to the account's default chat model. (#62997)
  • Side Panel Tab Shortcuts: Right-click a side panel tab and choose Close tabs to the right. ⌘W now closes side panel tabs wherever focus is, βŒ₯⌘W or Ctrl+Alt+W always closes the session tab, and βŒ˜β‡§T reopens the last closed tab of either kind where it was. (#62922)
  • Mark Sessions Read or Unread: Open the menu on a tab, Home row, project row or inbox card and choose Mark as unread to keep its dot until you next visit. (#62889)

Breaking changes

@opencode/ai: ImageResponse.image is removed

This affects code that imports @opencode/ai directly. Read response.images[0] instead of response.image. (#63011)

SDK: fewer endpoints wait for plugins to load

On a Location that is still loading plugins, agent.list returns the agents loaded so far, and integration.list, usage.limits, vcs.init, rpc.call and artifact.* no longer wait up to 5 seconds. Entries and actions that a plugin provides appear when it finishes loading, so refresh on the matching *.updated event. Model, provider, generate.*, voice.* and websearch.query endpoints still wait. (#62796, #63040)

Core

Improvements

  • MCP Logins Stay Signed In: Remote MCP servers that rotate refresh tokens no longer sign you out when several clients refresh at once or the token endpoint fails for a moment. (#62827, #63012)
  • read accepts a negative offset to read from the end of a file, such as -50 for the last 50 lines. An offset past the end returns the last lines and the file's line count instead of failing. (#62147)
  • When read can't find a file, it suggests close names: different capitalization, another extension, a small typo, or the matching path inside the project. (#62147)
  • Shell results end with Exit code: N. Commands killed by a signal show the signal name, and timeouts say how long they waited and suggest a larger timeout. (#62141)
  • Prompt cache warming times its pings from the model's cache.ttl by default (interval: "auto"), or every 4 minutes without a TTL. Models whose cache outlasts the warming duration are no longer pinged. (#62831)
  • When MCP servers connect, disconnect or change tools, Code Mode sends the model a short list of what changed instead of the whole tool catalog. (#62176)

Bug fixes

  • GitHub Copilot session costs use the amount Copilot charged instead of the catalog estimate, and content-filter errors name the filter that blocked the response. (#62034)
  • GitHub Copilot picks up a new API endpoint after a plan change on its next model refresh, so you no longer have to sign in again. (#62171)
  • Remote MCP servers that rotate refresh tokens no longer log you out when the TUI, desktop app, background service or several projects refresh the same login at once. (#62827)
  • A temporary failure while refreshing an MCP OAuth token keeps your login for the next try instead of marking the server needs_auth. (#63012)
  • MCP tool calls no longer fail when the server's result doesn't match the tool's own output schema, so completed actions aren't reported as failed. (#61254)
  • MCP prompts stay available when refreshing a server's prompt list fails. (#62266)
  • With background_compaction on, a background summary no longer stops a running Claude Agent session mid tool call. (#63025)
  • After opencode auth logout on a .well-known integration, its remote providers and policies stop applying until you log back in. (#62760)
  • OpenCode Console workspace policies still apply when Console's instructions or skills fail to load. (#62702)
  • Cloudflare AI Gateway providers set up with only gatewayApiKey now send that key. (#62574)
  • A v1 model override that sets only some capabilities no longer resets the others, so catalog capabilities like PDF input are kept. (#62573)
  • A v1 provider config that sets both api and options.baseURL keeps options.baseURL. (#62570)
  • Legacy model references with an inline variant, such as "openai/gpt-5#high", keep the variant. (#62254)
  • A fresh install imports saved provider credentials from the legacy auth.json, and skips an invalid one with a warning instead of stopping setup. (#62568)
  • Cache warming stops for a session when a ping rebuilds the cache instead of reading it, counts its interval from when a request was sent, and no longer pings during compaction or after the session is deleted. (#62926, #62941, #62972)
  • Tokens and cost from session.generate requests, including cache warming pings, count toward the session's totals. (#63006)
  • Under zsh, a glob that matches nothing, like rm *.tmp, is passed through as bash does instead of stopping the command. (#62141)
  • Truncated shell output that starts mid-line drops the partial first line, so the "showing lines X–Y" notice is exact. (#62141)
  • On Windows, multi-line commands no longer lose everything after the first line with PowerShell 7 from the Microsoft Store. (#62522)
  • read no longer cuts an emoji in half when it shortens a long line. (#62575)
  • Generated session titles no longer include the model's commentary. Thanks @shanebishop1. (#62267)
  • Markdown agents whose description starts with a bracketed tag, like [Beta] Reviews code, now load. (#62250)
  • Markdown agent and command files that fail to load log a warning with the file path and frontmatter error. (#62464, #62251)
  • Markdown agent discovery skips node_modules. (#62571)
  • Failed plugin installs from git show git's own error instead of "An unknown git error occurred". (#62261)

TUI

Improvements

  • The update and confirm dialogs have buttons you can move between with ←/β†’ and Tab/Shift+Tab. (#62906)
  • The model picker no longer has a Usage action; use /usage instead. (#62927)

Bug fixes

  • Session exports are saved in the current working directory instead of the system temp folder. (#62253)
  • Typing a child session's exact ID in the open-session menu lists that session. (#62262)
  • The TUI follows the terminal's current light or dark mode instead of a cached palette. (#62248)

Desktop

Improvements

  • Right-click a side panel tab to Close tabs to the right. ⌘W closes side panel tabs wherever focus is, the new Close session tab command (βŒ₯⌘W or Ctrl+Alt+W) always closes the session tab, and βŒ˜β‡§T reopens the last closed side panel or session tab where it was. (#62922)
  • Added Mark as read and Mark as unread to the menus for tabs, Home rows, project rows and inbox cards, and Rename to inbox cards. (#62889)
  • The answer you pick in the question dock shows as a raised card. (#62896)
  • Inline rename and custom-answer fields no longer show a focus border. (#62919)

Bug fixes

  • On Windows and Linux, Ctrl+Shift+R toggles the review panel again instead of reloading the window. (#62567)
  • Closing the last side panel tab slides the panel shut. (#62758)
  • Selects, menus, tooltips and toasts opened from a dialog are reachable by screen readers. ([#62913](https://github.co...
Read more

v2.2.6

Choose a tag to compare

@github-actions github-actions released this 06 Nov 23:37
Immutable release. Only release title and notes can be modified.

Highlights

  • Shared MCP Connections: Turn on pooling for an MCP server to share one connection across projects with the same setup, so you run fewer processes and start faster. (#61185)
  • GUI Plugin Themes and New Slots: GUI plugins can now add color themes, render or add actions to code blocks, and use native settings and menu components. (#61485, #61533, #61527, #61509)
  • Mobile Composer Dock: On phones and tablets, composer actions now sit in a touch dock above the keyboard with larger buttons. (#61773)
  • Scripted Runs in Worktrees: Run opencode run -w to start the session in a new git worktree, or --worktree=<name> to name it. (#60712)
  • Automatically Archived Runs: Add --archived to opencode run to keep scripted and CI sessions out of your inbox and session lists. (#61270)

Core

Improvements

  • Added opt-in MCP connection sharing through pool: true. (#61185)
  • Added opencode run --archived, which creates the session already archived so scripted and CI runs stay out of the inbox, home, and session lists. Archived sessions are also hidden from the TUI session list and skipped by --continue. (#61270)
  • Added opencode run --worktree (-w), which starts the session in a new git worktree. Use --worktree=<name> to choose the worktree name. It cannot be combined with --continue or --session. (#60712)
  • Added provider- and model-specific session warming settings, including an interval: "auto" mode based on cache TTL. (#60025, #60969)
  • Added the websearch.use policy action and switches for enabling all feature flags with OPENCODE_FLAGS=all or experimental.all_flags. (#61557, #61826)
  • Added an experimental bytecode VM for Code Mode. It is off by default; turn it on with experimental.codemode_vm: true or OPENCODE_FLAGS=codemode_vm. (#62358)
  • Added support for Microsoft Store installations of PowerShell 7 on Windows. (#61952)
  • Added Azure Messages support for Foundry Claude models. (#60934)

Bug fixes

  • opencode run now waits for the background shell commands, subagents, and image jobs that its prompt started, then lets the model respond to their results before it exits. While it waits, it prints waiting for N background job(s) (a background_wait event with --format json). There is no time limit: a job that never exits, such as a dev server or file watcher, keeps the run open until you press Ctrl+C or send SIGTERM, so set a timeout on CI jobs. (#60699, #61911)
  • Reworked noninteractive opencode run execution so arguments, cancellation, compiled WebSocket upgrades, and service shutdown complete reliably. SIGTERM now cancels the session and its background jobs and exits with code 143. (#61911, #61721, #61518, #61564)
  • Serve file reads and media from the server API as sandboxed downloads, and refuse cross-site browser navigations and requests from disallowed origins to /api/*, so a file in your project cannot run scripts on the server's origin. (#62422)
  • Webfetch and Code Mode fetch now reject URLs that contain credentials and ignore the #fragment when matching permission rules, and Code Mode fetch checks every redirect against your webfetch rules. (#60502, #61701, #62373)
  • Ask for external_directory permission before session_move leaves the current project. (#62204)
  • Wait up to 2 seconds for MCP servers that are still connecting before a model call, so tools from servers that connect quickly reach the first prompt and opencode run. Also expand ~ in local MCP working directories, handle legacy stdio servers, and send logo_uri during dynamic registration. (#60490, #61496, #61817, #59031)
  • Time out OpenCode Console config requests after 5 seconds, so startup no longer hangs when the Console accepts the connection but never answers. (#62404)
  • Retry provider requests while their host is unreachable and recover prematurely ended Cohere streams. (#61880, #61184)
  • Keep legacy custom providers whose models set only part of limit, such as only limit.context, instead of dropping the whole provider without an error. Thanks @Tarquinen. (#62240)
  • opencode acp now removes a session that a client creates with session/new and closes without prompting, so IDE integrations no longer leave empty sessions behind. (#62189)
  • Prevent repeated zsh q flags from freezing shell permission scanning. Thanks @yangguan-xue. (#60791)
  • Allow npm upgrade install scripts again. Thanks @renatomoselli. (#51554)

TUI

Improvements

  • Added Scroll on send in Settings. Choose Keep (session.submit_scroll: "keep") to retain your reading position after submitting a prompt. (#61460)

Bug fixes

  • Allow Ctrl+Z to suspend OpenCode while a form or dialog is open. (#62118)
  • Keep focus on an open dialog when a question arrives and contain plugin dialogs that throw during rendering. (#60365, #62110)
  • Show an error when Ctrl+V cannot read the clipboard. Thanks @jimmyallinai. (#61094)
  • Prevent session titles containing newlines from crashing the TUI. Thanks @vishalShekhar. (#57523)
  • Improved message spacing and prevented older history from flashing while scrolling. (#62104, #59236)
  • Jump to the first or last message with Home, End, and Ctrl+G in subagent sessions. Thanks @ricky9408. (#60817)
  • Keypad Home, End, Page Up, and Page Down now navigate the transcript like the main keys in terminals that use the kitty keyboard protocol. Thanks @argszero. (#59770)
  • opencode mini now uses the agent colors from your config. Thanks @ferdinandyb. (#62067)
  • Return to the /mcp list after signing in to an MCP server, with that server still selected. Thanks @Tarquinen. (#62245)
  • Allow favoriting models with Ctrl+F in /models when they come from a provider declared in config or an add-on instead of a saved connection. Thanks @Tarquinen. (#62244)

Desktop

Improvements

  • Added a mobile composer dock for touch devices, with 44px action targets and predictable multiline input. (#61773)
  • Added close-other-tabs and close-tabs-after actions to the tab menu. (#61631)
  • Added unread-session grouping in Inbox and failed-run indicators on tabs. (#61691, #62077)
  • MCP sign-in now accepts a pasted redirect URL when automatic redirection is unavailable. (#61706)
  • Markdown file previews now display frontmatter as a properties list. (#60333)
  • The command palette shows a date instead of "Xd ago" for sessions 7 or more days old. Hover the time to see the full date and time. (#62314)
  • Prompt history now keeps up to 200 prompts. Past the newest 100, only prompts without attachments are kept. (#62313)

Bug fixes

  • Improved prompt submission and timeline behavior during loading, reconnects, retries, scrolling, compaction, and optimistic delivery. (#62025, [#6203...
Read more
⌂ 捒网址