What changed in opencode from 1 to 2
8 releases numbered after v1.19.5 up to and including v2.2.7, stable releases only. v1.19.5 and v2.2.7 are the newest stable releases of 1 and 2 we track; this page follows them as new ones ship.
- 4 mention breaking changes
- 3 remove or deprecate something
- 4 releases carry a version number we could not place against this range and are not shown; the full changelog has them.
175 changes across 8 releases
- GitHub Copilot Auto model option in the model picker that lets Copilot's router choose the model for each session at the Auto discount, falling back to the account's default chat model if routing fails
- Right-click context menu option on a side panel tab to close tabs to the right
- Cmd+W closes side panel tabs wherever focus is, Opt+Cmd+W or Ctrl+Alt+W always closes the session tab, and Cmd+Shift+T reopens the last closed tab of either kind
- Mark as unread option in the menu on tabs, Home row, project rows and inbox cards to keep the session dot until the next visit
- Added opt-in MCP connection sharing through `pool: true`
- Added `opencode run --archived`, which creates the session already archived so scripted and CI runs stay out of the inbox, home, and session lists
- Added `opencode run --worktree` (`-w`), which starts the session in a new git worktree, with `--worktree=<name>` to choose the worktree name
- Added provider- and model-specific session warming settings, including an `interval: "auto"` mode based on cache TTL
- Added the `websearch.use` policy action and switches for enabling all feature flags with `OPENCODE_FLAGS=all` or `experimental.all_flags`
- Added an experimental bytecode VM for Code Mode, off by default and enabled with `experimental.codemode_vm: true` or `OPENCODE_FLAGS=codemode_vm`
- Added support for Microsoft Store installations of PowerShell 7 on Windows
- Added Azure Messages support for Foundry Claude models
- Keyboard shortcut Cmd+Option+O on macOS or Ctrl+Alt+O on Windows and Linux to choose a worktree, and Cmd+Option+B or Ctrl+Alt+B to choose its base branch
- Keyboard shortcut Cmd+Shift+X on macOS or Ctrl+Shift+X on Windows and Linux to toggle shell mode in the composer
- Holding Cmd or Ctrl in the quote popup turns its checkmark into send, and Cmd+Enter or Ctrl+Enter sends just that quote and comment without affecting the rest of the composer
- The compaction.buffer setting in opencode.json accepts a percentage of the model's context window, such as "20%", in addition to a token count
- Desktop shows tooltips for the new worktree and base branch shortcuts and can copy the full worktree directory by selecting its path
- Desktop adds flat input surfaces and a compact input size
- Desktop terminals now belong to the session, survive server restarts with their scrollback, and stay synchronized with the TUI and other windows
- Renamed terminals keep their names across restarts
- Opt-in artifacts via experimental artifacts setting in opencode.json, letting agents publish, update, and serve HTML or static artifacts through the built-in local provider or plugin-provided storage
- Guided Claude Agent setup in the provider picker that copies claude auth login, installs Claude Code, and verifies the connection before model selection
- Choose base branch command while creating a worktree, bound to Cmd+Alt+. on macOS and Ctrl+Alt+. on Windows and Linux, available in the command palette and Settings Shortcuts
- Artifact tools artifact_create, artifact_read, artifact_update, and artifact_delete, including a built-in local static-file provider
- client.experimental.artifacts SDK methods: providers, list, create, get, update, delete, and view
- ctx.experimental.artifact.transform for Effect and Promise plugins to register artifact providers, capabilities, prompts, and the default provider
- Guided Claude Agent installation, sign-in, connection checking, and recovery from Needs sign-in in the desktop app
- Choose base branch added to the desktop command palette and shortcuts
- Built-in Claude Agent provider: install Claude Code, run `claude auth login`, and select Claude Agent in `/connect`; OPENCODE_CLAUDE_PATH can override the Claude executable
- Code Mode JavaScript checks in experimental schedules, including statically authorized tool calls, persistent state, and custom wake messages
- Separate managed-policy actions for connecting to integrations and using integrations, MCP servers, skills, and plugins
- Lazy loading of stored image references when experimental.media_blob is enabled, downloading images only for previews
- Desktop spellcheck toggle under Settings → General and system-language dictionary selection on Windows and Linux
- PageUp and PageDown timeline paging from the composer without moving the draft cursor or focus
- Independently configurable question notifications and sounds under Settings → Notifications → Questions
- Separate project and worktree actions in the new-session control
- One-click version copying in Settings → About
- Enabled experimental_image_generate by default when an image-capable provider is connected, with its preferred model set through experimental.image_generate.model
- Clicking the current Git branch on the new-session screen opens the current project's worktree picker directly
- Added a compact optional-comment editor shared by timeline quotes, terminal quotes, and browser annotations, with source highlights kept attached to local drafts
- Added if and until inputs for client.experimental.schedule.create, plus schedule check results and output fields
- Exposed SessionInfo.time.busy for the start time of the latest execution
- Added optional source metadata to prompt file attachments
- Added a side-panel tab menu and kept close buttons visible when tabs overflow
- Added optional title and subtitle fields to composer notes, source-relative quote positioning, and focus options for composer integrations
- Added reset details, an account link, and a composer tray for Go usage limits
- Add /goal <objective> with pause, resume, and clear controls, plus automatic progress review until the objective is met
- Add opt-in scheduled prompts through /schedule, agent tools, and experimental.schedules
- Add the opt-in image_generate tool for background image creation and editing, with automatic or configured model selection
- Offer GPT Image 2 after Codex sign-in and add MiniMax and Meta Muse image generation support
- Add Responses API support for OpenRouter, DigitalOcean, and Venice, including freeform tools
- Add /reload to reload configuration without restarting in Desktop
- Create, install and share experimental Desktop plugins
- Add experimental image and decision generation APIs to plugins and SDK for image generation and decision model workflows
- Plugins can attach and update keyed session instructions with ctx.session.instructions.entry.put, list, and remove, which survive compaction and reverts without starting an extra model turn
- Restore the Todo tool in the desktop app via opt-in
- Add configurable prompt cache TTLs per provider and model
- Add image and decision entrypoints for catalog providers
- Let model-list API requests filter by type
- Let plugins filter event subscriptions by type
- Add the machine hostname to /api/info
- agent.list returns agents loaded so far on a Location still loading plugins, and integration.list, usage.limits, vcs.init, rpc.call and artifact.* no longer wait up to 5 seconds for plugins to load
- Remote MCP servers that rotate refresh tokens no longer sign users out when several clients refresh at once or the token endpoint fails briefly
- read accepts a negative offset to read from the end of a file, and an offset past the end returns the last lines and the file's line count instead of failing
- When read cannot find a file, it suggests close names for different capitalization, another extension, a small typo, or the matching path inside the project
- Shell results end with Exit code N, commands killed by a signal show the signal name, and timeouts report how long they waited and suggest a larger timeout
- Prompt cache warming times pings from the model's cache.ttl by default (interval auto), or every 4 minutes without a TTL, and skips models whose cache outlasts the warming duration
- Code Mode sends the model a short list of changed MCP tools instead of the whole tool catalog when MCP servers connect, disconnect or change tools
- `opencode run` now waits for background shell commands, subagents, and image jobs started by its prompt, and prints `waiting for N background job(s)` (a `background_wait` event with `--format json`) while it waits, with no time limit
- SIGTERM now cancels the session and its background jobs during noninteractive `opencode run` and exits with code 143
- Archived sessions are hidden from the TUI session list and skipped by `--continue`
- When the read tool misses because a folder is missing, the error names that folder and the nearest existing one
- When the edit tool can't find oldString, the error shows the file's closest lines or states that the change is already present
- Tool calls to a tool named bash now run as shell with the same permissions instead of failing, while a plugin tool actually named bash still takes precedence
- Enabled schedules now run under opencode serve and are coordinated across multiple server processes so a schedule fires only once; schedules remain opt-in through experimental.schedules
- Raised OpenCode Go limits for DeepSeek V4.1 Flash
- client.experimental.persistentPty.update can rename terminals or clear a user title, and exposes userTitle plus persistent-pty.updated events
- User, project, and remote configuration can override Console-supplied provider names, limits, variants, settings, and headers
- Terminals moved to persistent session PTYs shared with the TUI and other windows, with restored scrollback, server-side renaming, and restart persistence
- Session location popover simplified and long paths made easier to read
- TUI plugins require @opentui/core and @opentui/solid 0.8.0 or later
- `integration.use` now controls only integration accounts; the new `mcp.use`, `skill.use`, and `plugin.use` actions control MCP servers, skills, and plugins, with old `mcp:`, `skill:`, and `plugin:` rules converted automatically
- Streaming replies and long conversations in Desktop do much less rendering work
- Recorded the start time of each session's latest execution
- Restored classic question cards by default and added Settings → Experimental → New question UI for the redesigned keyboard-oriented dock
- Moved user-message actions into a compact menu
- Redesigned the active todo pill to show the current task and concurrent work more clearly
- Improved Go usage-limit messages with the reset time and account page link
- Improve snapshot performance by coalescing captures and avoiding repeated ignore-file work
- Rename each provider's configure() input type to Config, for example Groq.LanguageModelOptions becomes Groq.Config, and make model() settings optional when every setting is optional
- Show /goal status below the prompt and provide a dialog for pausing, resuming, or clearing it
- Make the redesigned searchable model picker the default in Desktop, with dedicated Favorites and Recent sections and keyboard-accessible provider controls
- The @opencode/ai package root now exports the Promise API, and the Effect API moved to @opencode/ai/effect
- @opencode/plugin now requires @opentui/core and @opentui/solid 0.7.0 instead of 0.6.8 or later
- Let custom model configuration set a model type
- External-directory permission checks use the project's filesystem
- Move image resizing off the main process and release idle image memory
- Reduce repeated session-history loading during a step
- Start session history from the latest completed compaction
- Expose MCP server titles from serverInfo
- 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
- GitHub Copilot picks up a new API endpoint after a plan change on its next model refresh without requiring sign-in again
- Remote MCP servers that rotate refresh tokens no longer log users out when multiple clients refresh the same login at once
- A temporary failure while refreshing an MCP OAuth token keeps the login for the next try instead of marking the server needs_auth
- MCP tool calls no longer fail when the server result does not match the tool's output schema
- MCP prompts stay available when refreshing a server's prompt list fails
- With background_compaction enabled, a background summary no longer stops a running Claude Agent session mid tool call
- After opencode auth logout on a .well-known integration, its remote providers and policies stop applying until the user logs back in
- OpenCode Console workspace policies still apply when Console instructions or skills fail to load
- Cloudflare AI Gateway providers configured with only gatewayApiKey now send that key
- A v1 model override that sets only some capabilities no longer resets the others, so catalog capabilities such as PDF input are kept
- A v1 provider config that sets both api and options.baseURL keeps options.baseURL
- Legacy model references with an inline variant, such as openai/gpt-5#high, keep the variant
- A fresh install imports saved provider credentials from the legacy auth.json and skips an invalid one with a warning instead of stopping setup
- Reworked noninteractive `opencode run` execution so arguments, cancellation, compiled WebSocket upgrades, and service shutdown complete reliably
- Wait up to 2 seconds for MCP servers that are still connecting before a model call, so tools from quickly connecting servers reach the first prompt
- Expand `~` in local MCP working directories, handle legacy stdio servers, and send `logo_uri` during dynamic registration
- Time out OpenCode Console config requests after 5 seconds so startup no longer hangs when the Console accepts the connection but never answers
- Retry provider requests while their host is unreachable
- Recover prematurely ended Cohere streams
- MCP servers sending stdio messages larger than 10 MiB no longer get disconnected, and large messages are read much faster
- Idle locations no longer restart their MCP servers right after shutting down
- Compaction caps its prompt at the model's context window when the input limit is larger
- LiteLLM context window errors now trigger compaction instead of stopping the session
- Reasoning is no longer converted to plain text when switching models or resuming an interrupted response, which caused request errors on some providers
- The TUI connect menu no longer lists MCP servers
- The desktop connect menu no longer lists MCP servers
- Added the missing top inset to the search field in the desktop recently closed menu
- Local OpenCode service requests are kept out of environment-configured proxies
- Claude Code's misleading /login instruction replaced with claude auth login
- Prompt cursor styles applied by plugins are preserved when themes or unrelated prompt state change
- Missing right padding added to edit and patch diffs
- Vertical session-tab activity pulse extended across the full tab width
- Terminal tab clicks and rename fields stay attached to the intended tab
- Matching commands are listed before sessions in command-palette search
- Copying user messages from an open actions menu works again
- Reduced repeated work and allocations while streaming Markdown, especially in long sessions
- Preserved plugin-provided model variants and delayed dynamic provider fallback until external SDK hooks have run
- Preserved permission reasons and feedback in MCP failures, and made Code Mode failures match direct tool-call failures
- Invalid Code Mode schedule checks now fail immediately on creation, and existing invalid checks pause without repeated execution
- Persistent terminals of a session are removed when the session is deleted
- Nested tool progress no longer replaces the parent execute call rows
- PHP syntax highlighting works for code blocks without an opening <?php tag
- `#` in file-search paths is preserved unless it introduces a valid line range
- The configured default cursor style is kept after config reloads
- Search cursor matches the highlighted row when a selection dialog has no query
- Rejected persistent terminal requests whose working directory no longer exists
- Preserved media when sessions are forked or imported
- Associated image-generation notices with the correct background job
- Preserved captured attachments and their original source paths in the TUI
- Prevented middle-truncated paths from overflowing at very narrow terminal widths
- Correctly typed and displayed Go and ChatGPT usage-limit errors
- Stopped queued prompts from dropping frames as their content grows
- Corrected visible flowchart edges connected through Merman subgraphs
- Preserve more context headroom when fitting tool output into the context window
- Retry provider throttling correctly instead of reporting it as context overflow
- Send image-edit references and image sizes in the formats expected by OpenRouter, Google, and Vercel Grok
- Keep credential metadata and prompt-cache settings out of model settings and variants
- Keep Git snapshots working in repositories that use a split index
- Expose Console web search only when the workspace enables it
- Improve Code Mode diagnostics for parse errors, stalled awaits, and promise-like search results
- Show execution failures that occur before the first model step in the TUI
- Keep the activity spinner visible while a continued subagent runs
- Send pasted image and PDF paths correctly when connected to a local server
- Improve spacing in an empty /usage dialog
- Reduce memory use when code search finds very large lines
- ImageResponse.image property removed from @opencode/ai; use response.images[0] instead
- Remove the fal, Black Forest Labs, Replicate, and Stability providers and their entry points from @opencode/ai
- Remove five legacy @opencode/ai entry points in favor of nested provider paths such as ./providers/amazon-bedrock/mantle and ./providers/google-vertex/chat
- The @opencode/ai/promise entry point is removed
- The OpenCode GitHub Action is no longer published and should be removed from workflows
- 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/*`
- Webfetch and Code Mode `fetch` now reject URLs that contain credentials
- Webfetch and Code Mode `fetch` ignore the `#fragment` when matching permission rules, and Code Mode `fetch` checks every redirect against webfetch rules
- Ask for `external_directory` permission before `session_move` leaves the current project
Original release notes, newest first
The list above is our reading of these notes; the originals from anomalyco are here, one fold per release.
v2.2.7
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.
⌘Wnow closes side panel tabs wherever focus is,⌥⌘WorCtrl+Alt+Walways closes the session tab, and⌘⇧Treopens 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)
readaccepts a negativeoffsetto read from the end of a file, such as-50for the last 50 lines. An offset past the end returns the last lines and the file's line count instead of failing. (#62147)- When
readcan'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.ttlby default (interval: "auto"), or every 4 minutes without a TTL. Models whose cache outlasts the warmingdurationare 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_compactionon, a background summary no longer stops a running Claude Agent session mid tool call. (#63025) - After
opencode auth logouton a.well-knownintegration, 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
gatewayApiKeynow 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
apiandoptions.baseURLkeepsoptions.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.generaterequests, 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)
readno 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
descriptionstarts 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
←/→andTab/Shift+Tab. (#62906) - The model picker no longer has a Usage action; use
/usageinstead. (#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.
⌘Wcloses side panel tabs wherever focus is, the new Close session tab command (⌥⌘WorCtrl+Alt+W) always closes the session tab, and⌘⇧Treopens 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+Rtoggles 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)
- An error appears when a path can't be opened in its default app. (#62572)
- Cut, Copy, Paste and Select All in the right-click menu follow the app language. (#62252)
- Ukrainian tool titles use nouns. (#62263)
- Scrolling titlebar search results no longer jumps back when late results arrive, the inbox no longer announces already-running sessions as working on load, and the quote toolbar comes back after
Escape. (#62597)
SDK
Improvements
session.generatereturnstokensandcostalong withtext. (#62835)credential.updatedincludes theintegrationIDandcredentialIDof the login that changed. (#62762)- Predicate questions in
client.experimental.generate.decisionsaccept optionalcriteria: { true?, false? }. (#62819)
Extensions
Improvements
v2.2.6
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 -wto start the session in a new git worktree, or--worktree=<name>to name it. (#60712) - Automatically Archived Runs: Add
--archivedtoopencode runto 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--continueor--session. (#60712) - Added provider- and model-specific session warming settings, including an
interval: "auto"mode based on cache TTL. (#60025, #60969) - Added the
websearch.usepolicy action and switches for enabling all feature flags withOPENCODE_FLAGS=allorexperimental.all_flags. (#61557, #61826) - Added an experimental bytecode VM for Code Mode. It is off by default; turn it on with
experimental.codemode_vm: trueorOPENCODE_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 runnow 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 printswaiting for N background job(s)(abackground_waitevent 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 runexecution 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
fetchnow reject URLs that contain credentials and ignore the#fragmentwhen matching permission rules, and Code Modefetchchecks every redirect against your webfetch rules. (#60502, #61701, #62373) - Ask for
external_directorypermission beforesession_moveleaves 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 sendlogo_uriduring 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 onlylimit.context, instead of dropping the whole provider without an error. Thanks @Tarquinen. (#62240) opencode acpnow removes a session that a client creates withsession/newand closes without prompting, so IDE integrations no longer leave empty sessions behind. (#62189)- Prevent repeated zsh
qflags 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 mininow uses the agent colors from your config. Thanks @ferdinandyb. (#62067)- Return to the
/mcplist after signing in to an MCP server, with that server still selected. Thanks @Tarquinen. (#62245) - Allow favoriting models with Ctrl+F in
/modelswhen 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, #62037, #61932, #62151)
- Surface loading and offline failures in review previews, file search, details, Word pages, and review diffs instead of showing empty or clean results. (#62114, #61862)
- Fixed provider connection, MCP sign-in, settings, and plugin loading flows that could become stuck after failures. (#62102, #61917, #61580)
- Preserve drafts, focus, caret position, queued prompts, and selected terminal tabs across failed or concurrent transitions. (#61579, #61969, #61852)
- Restart plugins after failed update handoffs and recover the renderer, storage, event stream, and background-service connection from transient failures. (#61649, #61908, #61804, #61748)
- Corrected V2 file labels and mention syntax. Thanks @velmet and @cheapredwine. (#55677, #60737)
- Attach only the
@mentionsin a line comment that match an existing file or folder, so a comment such asCheck @hereno longer fails the send. Render partial diffs in the review pane when it shows all lines, instead of a blank pane. Thanks @Tarquinen. (#62242, #62241) - Keep pasted images sendable after the clipboard tool deletes its temporary file. Thanks @lfscqk67. (#62057)
- While an input method is composing text, Escape, Enter, and Tab go to the input method instead of stopping the agent or picking a suggestion. (#62318)
- Fixed padding in the WSL distribution picker, the position of worktree and branch labels in Home search results, and the selected ring on the Interface layout setting. Thanks @inuyume. (#53676, #62317, #62309)
SDK
Improvements
- Added
client.experimental.job.list()and its Effect equivalent for listing background shell, subagent, and image jobs, with session, descendant, kind, and status filters. (#60698) - Server embedders can provide a custom
fetchimplementation for OpenCode HTTP, model, web, and remote MCP traffic. (#61582)
Extensions
Improvements
- Added
CodeBlockandCodeBlockActionGUI registries for custom fenced-code rendering and actions. (#61533) - GUI plugins can contribute themes through the
Themeregistry. (#61485) - Added
ctx.ui.Select, settings layout components, and menu-row components for native-looking plugin interfaces. (#61527) - GUI plugin side panels can set, read, and persist their preferred width. (#61509)
Bug fixes
v2.2.5
Highlights
- Worktree and Shell Mode Shortcuts: Press
⌘⌥Oon macOS orCtrl+Alt+Oon Windows and Linux to choose a worktree, and⌘⌥BorCtrl+Alt+Bto choose its base branch.⌘⇧XorCtrl+Shift+Xnow toggles shell mode in the composer. (#60713) - Send Quotes From the Comment Popup: Hold
⌘orCtrlin the quote popup to turn its checkmark into send, or press⌘EnterorCtrl+Enter, to send just that quote and comment while leaving the rest of the composer untouched. (#60640) - Percentage Compaction Buffer: Set
"compaction": { "buffer": "20%" }inopencode.jsonto keep a share of each model's context window free, so one setting fits models with small and large windows. Token counts still work. (#60647)
Core
Improvements
compaction.bufferaccepts a percentage of the model's context window, such as"20%", in addition to a token count. (#60647)- When
readmisses because a folder is missing, the error names that folder and the nearest one that exists. (#60688) - When
editcan't findoldString, the error shows the file's closest lines, or says the change is already there. (#60689) - Calls to a tool named
bashnow run asshellinstead of failing, with the same permissions. A plugin tool actually namedbashstill takes precedence. (#60687)
Bug fixes
- MCP servers that send stdio messages larger than 10 MiB no longer get disconnected, and large messages are read much faster. (#60694)
- Idle locations no longer restart their MCP servers right after shutting down. (#60668)
- Compaction now caps its prompt at the model's context window when the input limit is larger. (#60660)
- LiteLLM context window errors now trigger compaction instead of stopping the session. (#60692)
- Reasoning is no longer turned into plain text when you switch models or resume an interrupted response, which caused request errors on some providers. (#60498)
TUI
Bug fixes
- The connect menu no longer lists MCP servers, which are managed in their own place. (#60675)
Desktop
Improvements
- Added keyboard shortcuts to choose a worktree and its base branch, shown in tooltips, and a shortcut to toggle shell mode. The worktree path can be selected to copy the full directory. (#60713)
- Hold
⌘orCtrlin the quote popup to send a quote and its comment directly. (#60640) - Added flat input surfaces and a compact input size. (#60598)
Bug fixes
v2.2.4
Highlights
- Persistent Desktop Terminals: Desktop terminals now belong to the session, survive server restarts with their scrollback, and stay synchronized with the TUI and other windows. Renamed terminals also keep their names across restarts. (#60346)
- Publish Interactive Artifacts: Enable
"experimental": { "artifacts": true }inopencode.jsonto let agents publish, update, and serve HTML or static artifacts through the built-in local provider or plugin-provided storage. (#60351) - Guided Claude Agent Setup: Select Claude Agent from the provider picker to copy
claude auth login, install Claude Code, and verify the connection before continuing to model selection. (#60603) - Choose a Base Branch Quickly: While creating a worktree, open Choose base branch with
⌘⌥.on macOS orCtrl+Alt+.on Windows and Linux. The command is also available in the command palette and Settings › Shortcuts. (#60579)
Core
Improvements
- Added opt-in artifacts with
artifact_create,artifact_read,artifact_update, andartifact_delete, including a built-in local static-file provider. (#60351) - Made enabled schedules run under
opencode serveand coordinated multiple server processes so a schedule fires only once. Schedules remain opt-in throughexperimental.schedules. (#60478) - Raised OpenCode Go limits for DeepSeek V4.1 Flash. (#60625)
Bug fixes
- Allowed user, project, and remote configuration to override Console-supplied provider names, limits, variants, settings, and headers. (#60597)
- Kept local OpenCode service requests out of environment-configured proxies. (#60441)
- Replaced Claude Code’s misleading
/logininstruction withclaude auth login. Thanks @Tarquinen. (#60592)
TUI
Bug fixes
- Preserved prompt cursor styles applied by plugins when themes or unrelated prompt state change. (#60599)
- Added missing right padding to edit and patch diffs. (#60614)
- Extended the vertical session-tab activity pulse across the full tab width. (#60338)
Desktop
Improvements
- Moved terminals to persistent session PTYs shared with the TUI and other windows, with restored scrollback, server-side renaming, and restart persistence. (#60346)
- Added guided Claude Agent installation, sign-in, connection checking, and recovery from Needs sign-in. (#60603)
- Added Choose base branch to the command palette and shortcuts, bound to
⌘⌥.orCtrl+Alt+.. (#60579) - Simplified the session location popover and made long paths easier to read. (#60492)
Bug fixes
- Kept terminal tab clicks and rename fields attached to the intended tab. (#60645)
- Listed matching commands before sessions in command-palette search. (#60616)
- Restored copying user messages from an open actions menu. (#60576)
- Reduced repeated work and allocations while streaming Markdown, especially in long sessions. (#60549, #60562, #60577)
SDK
Improvements
- Added
client.experimental.artifacts.providers,list,create,get,update,delete, andview. (#60351) - Extended
client.experimental.persistentPty.updateto rename terminals or clear a user title, and exposeduserTitlepluspersistent-pty.updatedevents. (#60329)
Extensions
Improvements
- Added
ctx.experimental.artifact.transform(...)to Effect and Promise plugins for registering artifact providers, capabilities, prompts, and the default provider. (#60351)
v2.2.3
Highlights
- Use Claude Code in OpenCode: Install Claude Code, run
claude auth login, then select Claude Agent in/connectto use your Claude Code login and models. (#58782) - Faster Long Sessions in Desktop: Streaming replies and long conversations now do much less rendering work. (#60489, #60521, #60513, #60481)
- Desktop Stability Fixes: Fixes side-panel tabs, repeated "Session not found" toasts, and Open file over HTTP. (#60430, #60436, #60459, #60462)
Breaking changes
TUI plugins require OpenTUI 0.8
@opencode/plugin now requires @opentui/core and @opentui/solid 0.8.0 or later. In OpenTUI 0.8, a ScrollBox's wrapper, viewport, content, and scrollbars are facade objects instead of renderables, and a custom RenderContext must implement clock and onAnimationTick. See the OpenTUI 0.8.0 release notes. (#60385)
Managed policy: integration.use covers integrations only
integration.use now controls which integration accounts can be used, and the new mcp.use, skill.use, and plugin.use actions control MCP servers, skills, and plugins. Rules with the old mcp:, skill:, and plugin: resource prefixes are converted automatically, but a bare integration.use rule no longer applies to MCP servers, skills, or plugins. (#60315)
Core
Improvements
- Added the built-in Claude Agent provider. Install Claude Code, run
claude auth login, and select Claude Agent in/connect;OPENCODE_CLAUDE_PATHcan override the Claude executable. Thanks @Tarquinen. (#58782) - Added Code Mode JavaScript checks to experimental schedules, including statically authorized tool calls, persistent state, and custom wake messages. (#60140)
- Added separate managed-policy actions for connecting to integrations and using integrations, MCP servers, skills, and plugins. (#60315)
Bug fixes
- Preserved plugin-provided model variants and delayed dynamic provider fallback until external SDK hooks have run. (#60097, #60380)
- Preserved permission reasons and feedback in MCP failures, and made Code Mode failures match direct tool-call failures. (#60102, #60109)
- Fixed invalid Code Mode schedule checks so creation fails immediately and existing invalid checks pause without repeated execution. (#60349)
- Removed a session’s persistent terminals when the session is deleted. (#60322)
- Kept nested tool progress from replacing the parent
executecall rows. (#60480)
TUI
Improvements
- Added lazy loading for stored image references when
experimental.media_blobis enabled. Images are downloaded only for previews, while undo, revert, fork, and prompt recall restore referenced attachments safely. (#60116) - Added a distinct marker for the selected composer suggestion in the new designs. (#60393)
Bug fixes
- Fixed PHP syntax highlighting for code blocks without an opening
<?phptag. (#60359) - Preserved
#in file-search paths unless it introduces a valid line range. (#60336) - Kept the configured default cursor style after config reloads. (#60302)
- Matched the search cursor to the highlighted row when a selection dialog has no query. (#60310)
Desktop
Improvements
- Added a Desktop spellcheck toggle under Settings → General and system-language dictionary selection on Windows and Linux. (#59129)
- Added
PageUpandPageDowntimeline paging from the composer without moving the draft cursor or focus. (#59426) - Added independently configurable question notifications and sounds under Settings → Notifications → Questions. Thanks @YuriNek0. (#60358)
- Added separate project and worktree actions to the new-session control. (#60486)
- Added one-click version copying in Settings → About. (#52356)
- Grouped added projects in workspace settings. (#60221)
- Made question-answer text selectable. (#60372)
- Adapted the session header to narrow timeline widths. (#59512)
Bug fixes
- Side-panel tabs close again and New tab launchers respond to clicks, fixing a 2.2.2 regression. (#60430, #60436)
- Open file in the side panel works again in the web app over HTTP. (#60462)
- Kept question options and submit controls reachable on mobile. (#60335)
- Preserved simultaneous request notifications and inbox scroll position when opening sessions. (#60378, #60356)
- Fixed consecutive dropped files so every file mention is inserted into the composer. (#60463)
- Kept the current
@and command-menu selection stable while results update under a stationary pointer. (#59434, #60368) - Fixed
⌘Wside-panel closing and focus restoration when no closable tabs remain. (#59002, #60435) - Kept the mobile session drawer open while a session loads. (#59427)
- Restored maximized windows on their saved display and retained renderer permissions across shared-session windows. (#60482, #60458)
- Fixed timeline growth, zoom-end scrolling, highlighting, and DOM-observer performance issues in long sessions. (#60489, #60481, #60488, #60513, #60521)
- Kept models with unknown release dates visible. Thanks @joe-ieta. (#60496)
- Fixed reasoning-capability detection for models that expose reasoning through variants or compatibility metadata. (#60457)
- Evicted deleted sessions after a
404instead of retrying or showing repeated errors. (#60459) - Fixed the macOS application icon and added the required folder-access description to the app bundle. (#60020, #60503)
SDK
Improvements
- Preserved partial
LLMResponseoutput onAIError.partialwhen generation, object generation, or a tool loop fails. (#60477) - Unified Effect and Promise tool declarations around
tool(...), with optional output schemas and executable or declaration-only tools. (#60407) - Added typed OpenRouter
debug,models,plugins,provider, anduseroptions to the Responses route. (#60044) - Added
withMediaRefs,mediaHashFromUri, andMediaRequestOptionsto the Promise client for experimental stored-media references. (#60116)
Bug fixes
- Matched the Promise AI client more closely to the Effect API and accepted typed tools in loops. (#60465, #60390)
- Kept tools whose
executehandler can throw available to the AI client. (#60431) - Continued polling queued media generations when providers return unknown intermediate statuses. (#59988)
- Stopped sending an incompatible
filenamealongsidefile_urlon OpenAI Responses requests. (#60382)
Extensions
Improvements
- Added persistent-terminal renaming to the process daemon, including capability discovery and user titles that override shell-provided titles until cleared. (#60324)
Bug fixes
- Preserved
nullvalues in Code Mode text encoding. Thanks @xiajiahang. (#57639) - Tidied nested Extensions menus. (#59468)
v2.2.2
Highlights
- Image Generation by Default: When a connected provider supports image models, agents can now use
experimental_image_generatewithout additional configuration. Set its preferred model throughexperimental.image_generate.model. (#60258) - Faster Worktree Selection: On the new-session screen, click the current Git branch to open that project’s “Run session in” worktree picker directly. (#60263)
- Unified Quotes and Annotations: Timeline quotes, terminal quotes, and browser annotations now share a compact optional-comment editor, while source highlights remain attached to local drafts. (#60164)
Core
Improvements
- Enabled
experimental_image_generateby default when an image-capable provider is connected. (#60258) - Recorded the start time of each session’s latest execution.
Bug fixes
- Rejected persistent terminal requests whose working directory no longer exists.
- Preserved media when sessions are forked or imported.
- Associated image-generation notices with the correct background job.
TUI
Bug fixes
- Preserved captured attachments and their original source paths. Thanks @OpeOginni. (#60222)
- Prevented middle-truncated paths from overflowing at very narrow terminal widths.
- Improved Go usage-limit messages with the reset time and account page link.
- Correctly typed and displayed Go and ChatGPT usage-limit errors.
Desktop
Improvements
- Made the Git branch on the new-session screen open the current project’s worktree picker directly. (#60263)
- Unified timeline quotes, terminal quotes, and browser annotations around one optional-comment workflow. (#60164)
- Restored classic question cards by default and added Settings → Experimental → New question UI for the redesigned keyboard-oriented dock. (#59723)
- Added a side-panel tab menu and kept close buttons visible when tabs overflow.
- Moved user-message actions into a compact menu.
- Redesigned the active todo pill to show the current task and concurrent work more clearly.
- Added consistent styling for searchable dialogs and composer pills.
Bug fixes
- Stopped queued prompts from dropping frames as their content grows.
- Counted queued quotes and browser annotations as attachments.
- Reported failures to persist composer attachments through the normal error UI.
- Made Markdown fragment links scroll to the referenced heading.
- Kept each tab’s timeline state when switching directories.
- Ordered the inbox’s Working shelf by execution start time.
- Fixed side-panel launchers and automatic closing when the final tab is removed.
- Focused the matching navigation arrow while reviewing changes.
- Preserved pending model labels only when a queued prompt actually changes models.
- Added reset details, an account link, and a composer tray for Go usage limits.
SDK
Improvements
- Added
ifanduntilinputs forclient.experimental.schedule.create, plus schedule check results and output fields. (#60137) - Exposed
SessionInfo.time.busyfor the latest execution’s start time. - Added optional source metadata to prompt file attachments.
Extensions
Improvements
- Added optional
titleandsubtitlefields to composer notes, source-relative quote positioning, and focus options for composer integrations. (#60164)
Bug fixes
- Corrected visible flowchart edges connected through Merman subgraphs.
v2.2.1
Highlights
- Keep Working Toward a Goal: Run
/goal <objective>in the TUI or Desktop to let the session continue until a reviewer confirms the objective is met. Use/goal pause,/goal resume, or/goal clearto control it. (#59437) - Generate Images: Enable
experimental.image_generateto let agents create or edit images with the newimage_generatetool. You can optionally set its default model withexperimental.image_generate.model. (#59939, #60096) - Inspect Background Shells: Click a running shell in the Desktop activity pill to see its live output and stop it without leaving the menu. (#59496)
- New Default Model Picker: Search favorites, recent models, providers, and variants from the redesigned model picker, which is now the default in Desktop. (#59997)
Breaking changes
@opencode/ai provider removals and renames
These changes affect code that imports @opencode/ai directly. They don't change the CLI, Desktop, or the HTTP API.
- The fal, Black Forest Labs, Replicate, and Stability providers are removed, along with their
./providers/fal,./providers/black-forest-labs,./providers/replicate, and./providers/stabilityentry points. (#59977) - Five legacy entry points are removed. Import the nested paths instead, which 2.2.0 already exports:
./providers/amazon-bedrock-mantle→./providers/amazon-bedrock/mantle, and./providers/google-vertex-chat,-interactions,-mistral, and-responses→./providers/google-vertex/chat,/interactions,/mistral, and/responses. (#59506) - Each provider's
configure()input type is now namedConfig, for exampleGroq.LanguageModelOptions→Groq.Config, andmodel()settings are optional when every setting is optional. (#59765)
Core
Improvements
- Add
/goal <objective>with pause, resume, and clear controls, plus automatic progress review until the objective is met. (#59437) - Add opt-in scheduled prompts through
/schedule, agent tools, andexperimental.schedules. (#59401, #59457) - Add the opt-in
image_generatetool for background image creation and editing, with automatic or configured model selection. (#59939, #60096) - Offer GPT Image 2 after Codex sign-in and add MiniMax and Meta Muse image generation support. (#60085, #59929, #60081)
- Add Responses API support for OpenRouter, DigitalOcean, and Venice, including freeform tools. (#59991, #59963)
- Improve snapshot performance by coalescing captures and avoiding repeated ignore-file work. (#59419)
Bug fixes
- Preserve more context headroom when fitting tool output into the context window. (#59934)
- Retry provider throttling correctly instead of reporting it as context overflow. (#59649)
- Send image-edit references and image sizes in the formats expected by OpenRouter, Google, and Vercel Grok. (#60067, #59927)
- Keep credential metadata and prompt-cache settings out of model settings and variants. (#60057, #59500)
- Keep Git snapshots working in repositories that use a split index. (#59417)
- Expose Console web search only when the workspace enables it. (#59592)
- Improve Code Mode diagnostics for parse errors, stalled awaits, and promise-like search results. (#59834, #59749, #59981)
TUI
Improvements
- Show
/goalstatus below the prompt and provide a dialog for pausing, resuming, or clearing it. (#59437)
Bug fixes
- Show execution failures that occur before the first model step. (#60079)
- Keep the activity spinner visible while a continued subagent runs. (#59950)
- Send pasted image and PDF paths correctly when connected to a local server. (#59833)
- Improve spacing in an empty
/usagedialog. Thanks @Tarquinen. (#59918)
Desktop
Improvements
- Add
/reloadto reload configuration without restarting. (#59887) - Make the redesigned searchable model picker the default, with dedicated Favorites and Recent sections and keyboard-accessible provider controls. (#59997)
- Show live output and a Stop action when you select a background shell from the activity pill. (#59496)
- Show
/goalstate and actions in a composer pill. (#59437) - Redesign the integrations dialog and always include OpenCode free models in the model picker. (#59976, #60047)
- Add project, worktree, open-in-app, and terminal actions to the session location menu. (#59607)
- Refine project and worktree selection, command search, prompt-history focus, composer model labels, and artifact preview controls. (#59397, #59604, #59626, #59735, #59657)
- Highlight quoted timeline content while you write its first comment. (#59286)
- Keep draft attachment bytes local when using experimental media URIs. (#59104)
Bug fixes
- Follow each plugin server’s configured endpoint when connecting to its event stream. (#60087)
- Treat the reachable scroll boundary as the end when Desktop zoom is active. (#60034)
- Prevent shell text from showing through copy buttons and avoid restyling the transcript when closing a side panel. (#59901, #59878)
- Keep rendering malformed tool metadata instead of crashing the timeline. (#59736)
- Make dropdowns open immediately and keep the new-session location shortcut working after tooltip interactions. (#59268, #59680)
- Remove edge halos from macOS application icons. (#59900)
SDK
Improvements
- Add
client.experimental.schedule.{create,list,get,pause,resume,delete}for managing scheduled prompts. (#59457) - Group experimental generated-client methods under
client.experimental; previous locations remain as deprecated aliases until the next minor release. (#59072) - Expose compaction through the Promise AI client. (#59987)
- Add freeform tool support and Responses routes for OpenRouter, DigitalOcean, and Venice. (#59963, #59991)
Extensions
Improvements
v2.2.0
Highlights
- Create, install and share Desktop plugins (experimental) (#55246, #59469, #59489)
- Refreshed the desktop app experience (#56898, #58865, #55838, #57962)
- Add experimental image and decision generation APIs to plugins and sdk, allowing image generation or decision model (think typesafe, clef, etc) workflows. (#59190, #59380, #58758)
- Plugins can now attach and update keyed session instructions with ctx.session.instructions.entry.put/list/remove. Instead of editing the system prompt and busting the prompt cache, each change is added as a small update at the next step. The entries also survive compaction and reverts, and they don't start an extra model turn. (#56550)
- Restored the Todo tool in desktop via opt-in (#59092)
- Add configurable prompt cache TTLs per provider/model (#59157)
Breaking changes
@opencode/ai root is now the Promise API
@opencode/ai now works like @opencode/sdk and @opencode/client: the package root exports the Promise API, and the Effect API moved to @opencode/ai/effect. @opencode/ai/promise is removed, and the wildcard subpath export is replaced with an explicit list of provider and protocol entry points. (#58847, #59183)
-import { AI } from "@opencode/ai/promise"
-import { LLM } from "@opencode/ai"
+import { AI } from "@opencode/ai"
+import { LLM } from "@opencode/ai/effect"
The OpenCode GitHub Action is removed
The OpenCode GitHub Action is no longer published. Remove it from your workflows. (#59032)
TUI plugins require OpenTUI 0.7
@opencode/plugin now requires @opentui/core and @opentui/solid 0.7.0, up from 0.6.8 or later. Plugins that depend on OpenTUI 0.6 fail to install until they upgrade. In OpenTUI 0.7, custom renderables read their hooks from their class at construction: assign renderBefore, renderAfter, and onLifecyclePass in the constructor instead of as class fields, call refreshHooks() after adding a hook by reflection, and replace defineNativeIntegration() with a static nativeIntegration declaration. See the OpenTUI 0.7.0 release notes. (#59295)
Core
Improvements
- Add experimental image and decision generation API endpoints. (#59190)
- Add image and decision entrypoints for catalog providers. (#59380)
- Improve integration rebuild performance. (#59402)
- Let custom model configuration set a model type. (#59388)
- Let model-list API requests filter by type. (#59355)
- Make external-directory permission checks use the project's filesystem. (#59089)
- Reduce memory use when code search finds very large lines. (#59205)
- Let plugins filter event subscriptions by type. (#58864)
- Add configurable prompt-cache TTLs. (#59157)
- Move image resizing off the main process and release idle image memory. (#58820)
- Reduce repeated session-history loading during a step. (#59091)
- Add an experimental API for session media and opt-in media URI support. (#59103)
- Add the machine hostname to
/api/info. (#59090) - Add experimental content-addressed blob storage for session media behind
experimental.media_blob. (#58656, #58741) - Start session history from the latest completed compaction. (#59020)
- Reduce work encoding durable event payloads that are not persisted. (#58923)
- Expose MCP server titles from
serverInfo. (#58950) - Apply OpenCode Console workspace configuration as a configuration layer. (#57703)
- Replace experimental evaluations with Decision APIs in the AI pkg, including OpenAI Decisions, System One, and Cloudflare Run models. (#58758, #58382, #58379, #58381)
- Convert tool schemas once to speed up tool execution. (#58798, #58848)
- Make Git project discovery faster while recognizing repository changes. (#58616)
- Show OpenCode Console budget limits and Go usage where they block you. (#58694, #58714)
- Record provider-reported session costs. (#58562)
- Find Git more reliably on macOS. (#58602)
- Resolve model details once per prompt step. (#58601)
- Let plugins manage session instruction entries for subsequent model requests. (#56550)
- Add GPT-6.1 Terra and GPT-6.1 Terra Fast to Sign in with ChatGPT. (#59359)
Bug fixes
- Wait for plugins to finish reloading before each session step and tool call. Thanks @kernel-oops and @Tarquinen. (#51133)
- Size session compaction from the provider's reported token count to preserve usable context. (#59441)
- Skip unavailable models.dev API entrypoints instead of failing model catalog updates. (#59475)
- Return a server error with a reference ID when the server cannot encode a response. (#59459)
- Avoid warming a session while its model request is running. (#59325)
- Preserve legacy MCP
codemodesettings during migration. Thanks @tneemo. (#59126) - Use the correct Vertex AI endpoints for the
euandusmulti-regions. (#59335) - Accept Databricks hosts that include
http://orhttps://. (#59334) - Keep files intact when patch edits move a file onto itself. (#59197)
- Preserve literal
$0and$ARGUMENTStext in custom command input. (#59198) - Close project locations concurrently during shutdown. (#59326)
- Treat equivalent directory paths, including trailing slashes, as one location. (#59327)
- Send valid tool schemas to Kimi for tuple, default, and keyword-like arguments. (#59207)
- Expose Code Mode MCP tools directly when the
executepermission is denied. (#59315) - Coordinate OAuth credential refreshes across locations and processes. (#54023)
- List and search remote Git branches correctly without bare remote names. (#58597)
- Detect AVIF, HEIC/HEIF, QuickTime, and M4A attachments correctly. (#58480, #58886, #58887)
- Reduce memory retained by long-running tool calls and unchanged hooked model requests. (#58448, #58449)
- Load session diffs without reading every message, improving performance for large sessions. (#57686)
- Keep active locations alive when session events use an equivalent directory path. (#56259)
- Reload compatibility skills only when their own sources change. (#59086)
- Avoid publishing redundant catalog updates when configuration is unchanged. (#56267)
- Avoid booting idle or deleted project locations while polling session forms. (#59083)
- Wait for plugins before returning agent and provider lists, preventing incomplete catalogs. (#59082)
- Manage sessions and instruction entries after their project directory is deleted. (#58997)
- Start fuzzy file search only on first use, reducing project startup work. (#58959)
- Exit after 10 seconds when shutdown hangs and report pending work. (#58817)
- Keep the models catalog fresh without redownloading it when unchanged. (#58813)
- Send xAI Responses
top_ksettings and stop sending unsupported penalties. (#58868) - Honor shared parallel tool-call and service-tier settings for Groq. (#58871)
- Retry throttled requests instead of misreporting them as context overflows. (#58866)
- Preserve streamed text and reasoning that arrive after an OpenAI Chat finish reason. (#58851)
- Classify AWS REST JSON errors consistently regardless of where the error type appears. (#58770)
- Validate large base64 attachments without slowdowns or hangs. (#58811)
- Retry Bedrock throttling errors as rate limits instead of context overflows. Thanks @Irish-Joseph. (#58759)
- Keep working MCP tools available when a server returns malformed ones. (#58350)
- Match absolute instruction-file globs across directories. Thanks @heimoshuiyu. (#58749)
- Use configured provider regions in Bedrock endpoint URLs. (#58538)
- Handle unknown OpenAI Chat finish reasons without failing the response. (#58608)
- Avoid unnecessary Azure model updates when endpoint transforms make no change. (#58600)
- Prefer JPEG for opaque browser screenshots, reducing attachment size. (#56990)
- Detect generated image types from their bytes when compatible hosts omit the format. (#58475)
- Keep project services alive while sessions run long tools or wait for input, with a 24-hour inactivity cap. (#57274)
- Prevent unrelated configuration changes and compatibility-skill update bursts from repeatedly reloading skills. (#56260)
TUI
Improvements
- Reduce CPU use while animated session-tab pulses are visible. (#59235)
- List OpenCode Console before OpenCode Go in the integration picker. (#59107)
- Add
/usage, model-picker, prompt, sidebar, warning, and error details for OpenCode Console usage limits. (#58731) - Make CLI service registration more reliable when concurrent processes update its files. (#59105)
Bug fixes
- Return
opencode run --format jsonserver connection errors as JSON. Thanks @andreivince. (#59366) - Preserve pasted prompt text when copying it back out. (#59209)
- Reliably update the background service on Windows when its files are briefly locked. (#59105)
- Keep the background service state directory out of tool shells and identify processes blocking its port. (#58815)
- Refresh Git branch details after switching branches. (#58982)
- Keep the TUI running when a plugin slot or route renders bare text. Thanks @anmol0b and @Tarquinen. (#58144)
- Accept
--serverand--standaloneanywhere in supported CLI commands. (#58505) - Release closed and background session transcripts to prevent memory growth. (#58434, #57025)
- Connect remote access tunnels through HTTP proxies. (#58464)
- Keep development builds on a separate server, database, and port from released builds. (#58331)
Desktop
Improvements
- Manage desktop plugins from Settings › Extensions › Plugins. (#59489)
- Add a persistent desktop zoom setting. (#59277)
- Capture heap snapshots in desktop debug builds on
SIGUSR2when explicitly enabled. (#58317) - Show the open session title in the browser tab. (#59131)
- Show todowrite tasks above the composer. (#59092)
- Load session history once when returning to a session tab. (#59166)
- Answer questions with number keys and show multi-select choices as checkboxes. (#58595)
- Add an always-available Add project action to the location picker. (#57962)
- Let you rewind or fork from any message. (#58865)
- Let you edit line comments and copy shell output. (#58970, #58974)
- Render Mermaid diagrams in messages much faster, sized to fit the column. (#57483, #57004)
- Add opt-in memory logging and remote debugging for desktop debug builds. (#58315)
- Show web sources for a turn behind the experimental Sources setting. (#58307)
- Jump from a completed shell notification to its shell output. (#58663)
- Keep the composer usable while the voice-call panel floats. (#58587)
- Use the Soft Radar activity spinner by default and provide experimental variations. (#58010, #57903)
- Add an experimental new model picker. (#58413)
- Add experimental Console voice calls in Desktop beta. (#58249)
- Add a timeline width setting. (#58308)
- Improve command, session, and model search lists with sticky sections. (#58222)
- Add search to recently closed sessions. (#55721)
- Open extension configuration and skills in side tabs. (#58023)
- Open session extension lists on hover and follow keyboard navigation. (#58021)
- Add video previews with zoom controls. (#57924)
- Add generated project avatars and an experimental avatar-style switcher. (#57871, #57930)
- Add recently closed side tabs to the new-tab view. (#57863)
- Add a searchable prompt history picker. (#57716)
- Find settings from the command palette. (#57651)
- Group queued and steered messages, and group consecutive user messages under one metadata line. (#57561, #57552)
- Improve file-tree and folder-picker performance. (#57573, #57557)
- Keep branch search results visible while new results load. (#57531)
- Add a session-details menu to the session header. (#57528)
- Show a subagent's model, status, and elapsed time in its composer area. (#57473)
- Let you delete sessions from tab menus and rename the current session with Ctrl+R. (#57453, #57423)
- Restore session summary and project menu actions. (#57781)
- Let you place the background-activity capsule at the left, center, right, or hide it. (#57962)
- Show project and worktree details in the session header and location menu. (#57962)
- Add text-rendering controls to the debug bar. (#57326)
- Show elapsed time for background work. (#57218)
- Improve streamed Markdown rendering reliability and performance. (#57016)
- Split the side pane and add a draggable bottom pane with tabs. (#56960)
- Add consistent MCP sign-in and error-status links across connection, session, and Settings views. (#57962)
- Open multiple file tabs at once and open side-panel content in tabs. (#57182, #57094)
- Move running work to the background when you steer a session. (#57142)
- Let the timeline scroll beneath the composer while keeping its content visible. (#57141)
- Simplify Settings into a flat list with a per-server switcher. (#57962)
- Quote selected timeline or terminal text into the composer. (#55664, #58420)
- Search sessions across online servers from the title bar. (#57962)
- Add a Reduce motion appearance setting. (#57103)
- Show projects from all servers in the new-session location picker. (#57962)
- Pick models from a searchable dialog with favorites and recent models. (#55838)
- Attach the new-session location picker below the composer. (#56952)
- Open image previews directly from message and composer thumbnails. (#56896)
- Start new worktrees from the current branch in the simplified location picker. (#57962)
- Manage running subagents and shells from the composer activity capsule. (#57962)
- Sync projects from each server and prioritize projects you use on Home. (#57962)
- Choose between Focus and Pro interface layouts in Settings. (#56898)
- Open terminals as side-panel tabs. (#57962)
- Choose a project and worktree from one new-session location dialog. (#57962)
- Show subagents as separate timeline rows by default. (#57962)
- Add a sidebar toggle for vertical tabs. (#55646)
- Add ⌘1–9 and ⇧⌘[ / ⇧⌘] shortcuts for side-panel tabs. (#57301)
- Let you choose a new directory or worktree when a session location is unavailable. (#56087)
- Refresh the Manage models, MCP, and fork dialogs with compact searchable lists. (#56029, #56028)
- Install future Windows desktop updates in about a second. (#55933)
- Show individual Code Mode tool calls in Execute rows. (#55649)
- Add a Commentary timeline category and display setting. (#55248)
- Support
@links to other sessions in messages. (#57480) - Polish spacing, alignment, borders, and typography across the session header, titlebar, composer, file tree, browser pane, timeline, and Settings. (#58195, #57776, #57570, #57782, #57336, #57363, #58100, #58979)
Bug fixes
- Prevent duplicate tab shortcuts and remove uninstalled plugin commands from Shortcuts. (#59499)
- Keep todo items from shrinking in the todo panel. (#59430)
- Keep question-dock answers and controls positioned correctly when changing questions. (#59383)
- Keep the @ menu open while it searches. (#59425)
- Finish quitting after Cmd+Q on macOS. Thanks @anmol0b. (#59144)
- Toggle MCP servers for the current session location from Settings. (#59132)
- Deliver steering messages when an earlier move was missed. (#58984)
- Keep session and command-palette search results stable while searching. (#58908, #57479)
- Restrict Search projects to the project list. (#58978)
- Let custom Close tab shortcuts close terminal and browser tabs. (#58945)
- Prevent live status rows from jumping or leaving gaps above the composer. (#58691, #58697)
- Keep browser tabs still behind open dialogs. (#58958)
- Keep side-panel content and browser pages visible while the sidebar or panel moves. (#58202, #58185)
- Render session diffs reliably.
- Keep keyboard focus in terminals, side panels, dialogs, and the composer when appropriate. (#57980, #57297, #56273)
- Preserve empty browser and side-panel tabs instead of closing them automatically. (#58440)
- Reduce desktop memory use by releasing closed transcripts, discarded tool-result images, retained UI batches, and aborted timeline work. (#57025, #58434, #58427, #58560, #58447, #58439, #58432)
- Restore horizontal scrolling and sticky change badges in the file tree. (#58117)
- Show live Thinking for reasoning-only turns. (#58299)
- Stop loading older history after completing the initially visible turn and prioritize the first transcript page. (#57700, #57741)
- Keep Home project and session lists reliable during refreshes.
- Keep deleted sessions from reappearing on Home. (#55349)
- Find sessions immediately in @ mentions, including multi-word titles. (#57683)
- Keep queued messages editable while changes sync with the server. (#57569)
- Open image and video URLs in the browser pane. (#57562)
- Mark submitted generated forms as complete and send each response only once. (#57537)
- Improve file-view performance with reused views, virtualized medium files, and cached diffs. (#57551)
- Group untracked folders into one expandable review row. (#57527)
- Let you paste into the composer from the session view. (#57545)
- Recover failed beta background servers and preserve their required CLI versions. (#57321)
- Restore branch selection when starting a new worktree session. (#57962)
- Keep the running server available while beta updates install. (#57309)
- Make links in user messages, shell output, and Code Mode output clickable. (#57211, #57303)
- Make Check for Updates always report its result. (#57296)
- Reopen the last closed side-panel tab with ⇧⌘T and open a browser tab with ⌘T. (#57269, #57156)
- Keep OpenCode keyboard shortcuts working in the browser pane. (#56697, #55240)
- Preview image attachments supplied by file path. (#57249)
- Apply configured code and UI fonts consistently. (#57242)
- Keep activity and busy indicators steady while switching sessions. (#57196)
- Reserve ⇧⌘W for closing the window so ⌘W does not. (#57150)
- Make image preview transitions resize smoothly without clipping or blocking clicks. (#56997, #57324)
- Keep in-session search reliable alongside titlebar session search. (#57962)
- Return focus to the prompt after keyboard model selection.
- Open searchable pickers at the top with search focused. (#57962)
- Keep tables visible beneath sticky headers. (#57050)
- Fit provider connection steps without shifting a dialog's top edge. (#57006)
- Give unavailable-server panels clear error styling. (#57003)
- Make mouse-wheel and keyboard scrolling respond immediately on Linux. (#57962)
- Keep long Execute tool code contained and show successful Code Mode output. (#56915)
- Focus the most useful control when dialogs open, including Cancel in delete confirmations. (#57453)
- Install Windows beta, stable, and nightly builds into separate directories. (#56904)
- Keep session tabs recoverable when their server becomes unreachable. (#56248)
- Keep the composer model's provider and session-model resolution consistent with the TUI. (#56225)
- Reread open files without resetting their scroll position. (#55899)
- Hide agent names when agents are disabled. (#57525)
- Polish sidebar, panel, composer, activity, question-dock, loading, and motion behavior across light and dark themes. (#57449, #58013, #58577, #57944, #58052, #58494, #58073, #58114)
- Polish hover states, cursors, tooltips, focus rings, scrollbars, and transitions across desktop controls. (#57653, #57787, #57304, #58971, #57221, #57192, #58575, #58580)
SDK
Improvements
- Add GUI plugin APIs for toasts, dialogs, notifications, tabs, composer controls, and custom UI. (#59469)
Bug fixes
- Fix generated Promise client input types for TypeScript consumers. (#58875)
- Let SDK clients discard inline tool-result file payloads to reduce memory use. (#59101)
- Avoid unnecessary catalog refreshes for locations an SDK client has not loaded. (#55237, #59099)
- Restore running sessions created while an SDK client was disconnected. (#53012)
- Release omitted tool-image payloads from memory instead of retaining their base64 data. (#58560)