Repository navigation
Releases
Releases Β· anomalyco/opencode
v2.4.5
Immutable
release. Only release title and notes can be modified.
Highlights
- MCP Servers Survive Dropped Connections: When an MCP server drops, its tools stay available and reconnect on the next call, and new sessions start with each server's saved tool list instead of waiting for it to connect. (#67926, #67899)
- New Question UI in Desktop: Answer an agent's questions with a click, a number key or by typing your own answer, with Markdown in the question and answers checked before they're sent. Turn it off in Settings > Experimental. (#68047)
- Run an Automation Now: Click Run now next to Pause on an active timer automation in Desktop to run it right away. It counts as a normal run, and its schedule doesn't move. (#68034)
Core
Improvements
- MCP servers stay usable through dropped connections: tools stay listed, the next call reconnects, failed first starts retry, and saved tool listings let new sessions start without waiting for slow servers. A server that's gone (a missing command, or a URL that answers 404 or 410) is dropped instead of retried. The
mcp_resilienceflag was removed. (#67926, #67899, #67913, #67896, #68357) - With no default model configured,
opencode runwithout-m, ACP and API clients that don't name a model now use the model of your most recent session, and a session keeps the model it last ran on. (#68099) - Bundled ripgrep 16.0.0 with releases and put it on the shell tool's
PATH. (#66856) - Anthropic-compatible endpoints that stream thinking without a signature (GLM, DeepSeek and others) keep their thinking across turns. If an endpoint rejects it, OpenCode retries once without it, and the new
compatibility.requireSignaturesetting forces either behavior. (#68182, #68062) - The Code Mode catalog now lists namespaces and pinned tools, and the model finds other tools with
search. (#68086)
Bug fixes
- Fixed several MCP reconnect and sign-in problems: "no valid session ID" replies, a 401 after a token refresh, a rejected early refresh signing you out, sign-ins from another process, stdio servers hanging on close, tool calls resent after a reconnect, and lost replies waiting for the deadline. (#67897, #67895, #67997, #67900, #67902, #67901, #67991, #68053, #68068)
- Declining a permission ends the turn cleanly, a failed tool call stops its parallel siblings, and interrupted or broken provider streams no longer leave steps open. (#68079, #68077, #68075, #68113)
- Queued prompts stay queued when a restart resumes a turn, moving an idle session no longer wakes it, and deleting or moving a session cancels its pending forms and permission requests. (#67880, #68090, #68080)
- A session's summary is rebuilt after a revert, a manual rename survives title regeneration, and sessions loaded mid-stream show the text streamed so far. (#68100, #68122, #68097)
- The shell tool honors
cwdasworkdir, and the patch tool keeps a trailing blank line. (#68184, #68106) - Worktree refresh and removal work when the project checkout is gone, and a worktree whose start command fails is rolled back. (#67891, #68108)
- OpenAI-compatible providers without a
baseURLreport a configuration error for image, embedding and decision models instead of sending your key to another host. (#68174) - The automation scheduler survives storage failures. (#68145)
- A
.opencodefolder inside the global config directory (~/.config/opencode/.opencode) now loads. (#68342) - Code Mode
// @input:blocks accept loose spacing and unquoted or double-quoted tags instead of running their text as code. (#68369) - SAP AI Core accepts both of its package names. Thanks @jerome-benoit. (#67848)
TUI
Improvements
opencodeandopencode miniaccept-pas a short form of--prompt. (#68021)opencode apistreams responses as they arrive and stops cleanly when piped tohead. (#67856)- Mermaid diagrams fit the width of the markdown they're in. (#68268)
- Markdown math renders in replies:
$β¦$and\(β¦\)inline,$$β¦$$and\[β¦\]as display math. Plugins can supply the inline renderer withcontext.markdown.registerInlineMathRenderer. (#68341)
Bug fixes
@file#7attaches only line 7. Use@file#7-for line 7 to the end of the file. (#68332)- Redo removes the prompt text undo restored, a single Esc no longer arms the next run to interrupt, and Windows paths pasted in WSL attach the file. (#68098, #68085, #68005)
opencode serve --portrejects out-of-range ports with a clear error. (#67711)
Desktop
Improvements
- The New question UI is now on by default: answer with a click, a number key or by typing, with Markdown questions and answers checked before sending. Thanks @Pablo-aps. (#68047, #67999, #67989, #68026)
- The model picker and provider settings show each OpenCode workspace provider under the name Console sends, in a flat list. (#68180)
- Run an automation now from the automations list, edit the pairing address when pairing a device, and see when a response was sent by hovering its duration. (#68034, #67733, #67995)
- Added a setting to turn off automatic update checks, and turned on smooth scrolling by default on Linux. (#68277, #68148)
- Screen readers can use composer suggestions. (#67958)
- Corrected Korean translations and unified their terms. Thanks @hyungraekim-bagelcode. (#67274)
Bug fixes
- Signing in to OpenCode no longer waits 10 seconds or says models are still loading. (#68180, #68183)
- On Windows, a staged update is no longer unpacked on every start, and delta updates download correctly. (#68288, #68276)
- Long permission lists scroll, and a new permission request no longer replaces the one on screen. (#68043, #68250, #68139)
- Rich text copied from Office apps pastes as text, the vertical tabs sidebar remembers its width, and the Inbox no longer loads archived sessions. (#68197, #68275, #68171)
- Catalog reads retry after a timeout, a session whose creation failed is cleaned up, and cron descriptions stay correct for partial-hour minute lists. (#68102, #68093, #68052)
SDK
Improvements
- Se...
v2.4.4
Immutable
release. Only release title and notes can be modified.
Highlights
- Custom Model Responses in HTTP Hooks: Plugins using the
session.http.requesthook can now setevent.responseto answer model HTTP requests directly, making custom gateways, mocks, and request interception straightforward. (#67635) - Pop-Out Settings and Swatch Theme Picker: Pop Settings into its own window with live cross-window sync, and browse themes in a searchable popover with 5-color swatches and live preview. (#67759, #67752)
- Jump to Sessions by ID and Deep Links: Paste a session ID into the Command Palette in Desktop or TUI to jump straight to any session across servers, or open sessions directly via
opencode://session/<id>deep links. (#67779, #64180)
Core
Improvements
- Enabled each model's recommended API from
models.devby default and removed therecommended_apiflag. (#67250) - Added
experimental.tool.autoandexperimental.permission.savemanaged policy actions, with required prompts for unparseable shell commands when shell deny policies are active. (#67687, #67867) - Kept both the start and end of long shell output when truncating, renamed the shell result field
outputPathtofullOutputPath, and stopped deleting saved shell output when old commands are evicted. (#67159, #67421, #67666) - Filtered OpenRouter models using account preferences and loaded Sign in with ChatGPT models and speeds from the account's model list. (#67375, #67469)
- Increased the default header timeout for Gemini and DeepSeek models to 10 minutes, and added OAuth token revocation when removing GitLab, xAI, and DigitalOcean sign-ins. (#67243, #67406)
- Allowed
session.http.requestplugin hooks to answer model HTTP requests directly by settingevent.response. Thanks @nv-nedelman-1. (#67635) - Allowed versioned MCP skills to run without asking by default and included attached MCP clients in MCP instructions. (#67384, #67382)
- Added
opencode machine updatefor remote worker updates and tightened workspace sandbox confinement and per-OS path case-sensitivity. (#67315, #67202, #67211, #67632) - Updated bundled
ripgrepto 15.2.0 and added SHA-256 content deduplication to the experimental Blob API. (#67392, #67016, #67662) - Added experimental
mcp_resilienceand Code Mode durability and multi-turn worker improvements behind feature flags. (#62756, #67628, #67411)
Bug fixes
- Kept assistant message token counts accurate to context size across Anthropic fallback and compaction turns while preserving billed cost accuracy. (#67833, #67758)
- Retried in-flight MCP tool calls aborted when a concurrent request triggers a session-expiry reconnect. (#67852)
- Let retry hooks handle
content-filterfinishes and classifiedsensitive_words_detectedresponses as content-policy errors. Thanks @gsimone. (#67757, #67585) - Displayed Claude usage limit reset times in local time. (#67876)
- Serialized whole-file writes with concurrent edits, preserved permission denial reasons through tool error wrappers, and normalized tool errors replaced by
execute.afterhooks. (#67091, #67098, #67223) - Stopped auto-unarchiving archived sessions when sending prompts, commands, skills, or shell calls, and recovered parent wakes after subagent reports. (#67365, #63416)
- Fixed loopback URL detection for
localhost., unbracketed::1, and non-IPv4127.*hostnames, canceled piped stdin waits on abort inopencode run, and allowedblob:media in the Web UI CSP. Thanks @AdemGhalleb and @richard-fairthorne. (#67420, #65910, #64303)
TUI
Improvements
- Added session navigation by ID in the Command Palette and Session List. Thanks @gsimone. (#67779)
- Respected
metadata.requiredapproval policies inautoacceptmode andopencode run --auto. (#67687, #67867)
Bug fixes
- Reloaded textarea keybindings live when config changes without restarting TUI. Thanks @OpeOginni. (#66127)
Desktop
Improvements
- Added usage badges in the composer model trigger, a dedicated Free section in the model picker, an OpenCode account switcher, a Go usage meter, and a sign-in-first OpenCode connect flow. (#66845, #66847, #66848, #66849, #66850)
- Added paintable drag-to-toggle for model visibility, bulk Enable all / Disable all menus on direct providers, and configurable title generation models in Settings. Thanks @gsimone. (#67754, #67756, #67747)
- Added pop-out Settings windows with cross-window sync, a redesigned theme picker with color swatches and live preview, and the ability to hide any server across tabs, inbox, and notifications. (#67759, #67752, #67520)
- Added unified cross-server Command Palette search with instant session-ID lookup,
opencode://session/<id>deep links, a Regenerate title action, a "Full session" option at the top of/fork, and Close on pinned tab context menus. (#67779, #64180, #67608, #67748, #67731, #67499) - Redesigned the Automations tab inspector, added session links and GitHub PR status to Browser New Tab, showed relative folder paths in the file viewer toolbar, and updated OpenMono to 1.001. (#67373, #67580, #67800, #66907)
Bug fixes
- Disabled the touch composer on Desktop, ignored accidental Stop clicks within 400ms of Send, fell back to physical keys on non-Latin keyboard layouts, and kept floating surfaces clickable over desktop drag regions. (#67612, #67542, #66179, #67285)
- Filtered hidden models out of Recent and Favorites, synced external archive events in Inbox, tracked inbox session cutoffs per server, and removed the 5-minute client timeout on
/btw. (#67756, #67546, #67442, #67674) - Showed quote and note previews in the prompt queue, hid Allow always when a permission request cannot be saved, and fixed SSR rendering for selects and menus. (#67544, #67687, #67330)
Extensions
Bug fixes
- Fixed VS Code line selection ranges so selections ending at column 0 of the next line do not include that trailing line. ([#67527](http...
v2.4.3
Immutable
release. Only release title and notes can be modified.
Highlights
- Automations in Desktop: Open Automations from the sidebar or Home to view scheduled and event-driven automations across your servers, see which session each one wakes, and pause, resume, or delete them. (#66393, #66899)
- 11 New Themes and Contrast Calibration: Desktop adds Modus, Alabaster, VS Code, Cyberdream, Poimandres, Oxocarbon, Sakura, Espresso, Witch Hazel, E-Ink, and Dune, and calibrates all 35 existing non-default themes for WCAG 2.2 contrast. (#66521, #66528, #66531)
- OpenMono Default Font: Code blocks and the built-in terminal in Desktop now use OpenMono with bundled Nerd Font icons by default. Existing custom font settings stay unchanged. (#64797)
Core
Improvements
- Voice, embedding, and transcription models are now read from model config and Console settings instead of assuming hosted voice is always enabled. (#66627)
- Markdown agent files (
.opencode/agents/**/*.mdand~/.config/opencode/agents/**/*.md) now support an optionalnamefrontmatter field to set the agent ID. (#67051) - Request bodies sent to OpenCode endpoints are now gzip-compressed. (#67053)
- Claude Agent subagent processes now stop automatically once the subagent goes idle. (#66229)
- Mobile push notifications now include question, answer, error, and permission details. (#66451)
- Added MCP skills improvements, including per-version approval prompts when loading a skill from an MCP server. (#66731)
- Added
agent()andllm()with optional JSON Schema output in Code Mode (behind thecodemode_agentsflag) and native Windows machine worker support (behind themachinesflag). (#66278, #66912)
Bug fixes
- Improved built-in tools and Code Mode reliability:
readnow returns whole lines,grepwindows long lines and caps output at 50 KB,editreplaces all matches in a single pass, and Code Mode reports failing tool calls and missing keys more clearly. (#66927, #67017, #67060, #66665, #67075, #66504, #66647) - Fixed MCP OAuth, connection pooling, and error handling: refreshed tokens send granted scopes (fixing Entra), Google OAuth requests refresh tokens, HTTP 5xx probe errors fall back to legacy, pooled connections share across equivalent configs and stop leaked event streams on disconnect/removal, and local MCP stderr forwards to debug logs. (#66636, #66588, #66914, #66923, #67164, #66685)
- Fixed a batch of ACP issues covering attachment MIME/encoding, model display names, command error messages, subagent cost totals, selection echoes, title updates, skill commands, and worktree
cwdmatching. (#66631) - Fixed Claude Agent attachment handling (earlier-turn images, attachment filenames, and unreadable files) and ChatGPT multi-account OAuth registration. (#66755, #66756, #66757, #64945)
- Fixed CLI and runtime edge cases: native PTY cleanup on shell exit,
opencode run/miniusingprocess.cwd()instead ofPWD, unborn git repository project IDs, invalidservice.jsonprotection, emptyXDG_STATE_HOMEhandling, and plugin directory watchers ignoringnode_modulesand.git. Thanks @JorgeRojas2712. (#66720, #67047, #67144, #66687, #61288, #66471) - Fixed provider handling across Copilot GPT (prompt cache on effort switch), Google Interactions, Z.AI, Tencent, Muse, OpenAI Responses, and random web search failover. (#66648, #67146, #66643, #66796, #65028, #66881)
- Fixed watched status bursts waking sessions multiple times, nested permission metadata serialization, and session title regeneration ignoring the current title. (#66332, #66763, #66391, #67135)
TUI
Improvements
- Added Find in session behind the Find in session experiment (
experimental["session-find"]: true): press<leader>f,super+f, or run/findto search loaded messages incrementally. (#64870) - Text selections now render using theme colors (
text.selectionandbackground.selection), and provider lists now use the same ordering as Desktop andopencode auth login. (#65776, #66736)
Bug fixes
- Fixed three batches of TUI issues covering session list pinning and renaming, stashed input modes, pinned permission prompts,
"none"in keybind arrays, "Jump to latest", Mermaid bold tags and unspaced edge labels, symlinkedcli.jsonlive reload, clickable bare URLs in user messages, unmatched leader sequences, andopencode mini --replay-limit, plus an empty slot-path hang. (#66795, #66813, #66841, #66863)
Desktop
Improvements
- Shipped the Automations view to all builds in the sidebar, titlebar, and Home. View each automation's schedule or event trigger, folder, creator, and target session, and pause, resume, or delete automations directly. (#66393, #66899, #66900)
- Added 11 new built-in themes (Modus, Alabaster, VS Code, Cyberdream, Poimandres, Oxocarbon, Sakura, Espresso, Witch Hazel, E-Ink, and Dune) and calibrated all 35 existing non-default themes for WCAG 2.2 contrast and elevation. (#66521, #66528, #66531)
- Bundled OpenMono (with Nerd Font icons) as the default monospace font for code and the built-in terminal. Saved font preferences are unchanged. (#64797)
- Added a first-quit notice explaining that OpenCode continues running in the background for active sessions, terminals, and MCP servers, along with a Keep running in the background toggle under Settings > General. (#66499)
- Added an opt-in Install updates on quit toggle (off by default) under Settings > General > Updates, and a Smooth scrolling toggle (off by default) under Settings > General on Linux. (#66501, #66622)
- Added a browser address bar and recent pages list to the side panel's New tab view, a searchable model list after connecting a provider, and a Copy submenu on session menus (Session ID, Session title, Project ID). (#66818, #66608, #66576)
- Quotes, file-line comments, and page-element notes in sent user messages now render inline in the user bubble in every build, and the New question UI experiment now lets you answer custom responses from the composer. (#66823, #66825)
Bug fixes
opencode://open-projectandopencode://new-sessionlinks now ask for confirmation (including a preview of any pre-filled prompt) before opening a folder and reject relative paths, network shares, and control or bidirectional characters. ([#65803](https://github.com/anomalyco/...
v2.4.2
Immutable
release. Only release title and notes can be modified.
Highlights
- GPT-6.2 System Prompt: GPT-6.2 Sol and Astra, and the
gpt-latestaliases, use a system prompt written for GPT-6.2. (#66297) - OpenCode Go Onboarding Fix: After you connect OpenCode, the model picker lists OpenCode Go first. (#66363)
- Esc Takes Back Your Last Message: If the composer is empty, stopping a response with Esc before the model has written anything or called a tool removes your message and puts it back in the composer, images included, so you can edit it and send again. (#65505)
Upgrade notes
- "Always allow" for a web fetch allows that site only. It used to allow every URL. Approvals saved by earlier versions stay as they were. (#66000)
- Automations keep running after a failed run. A failed run is recorded and the next one runs on schedule. Automations still pause when the session that created them or their directory is gone, or when their setup is no longer valid. A shell command in an automation's code that runs past its timeout is now stopped and fails the call instead of moving to the background. (#66422, #65626)
- Sending to an archived session unarchives it. This applies to messages, commands, skills and shell commands, including ones sent through the API. (#66348)
- Plan mode's rules are in the system prompt. Sessions already in Plan mode get the rules once more after upgrading. (#63669)
Core
Improvements
- Added a system prompt for GPT-6.2. (#66297)
generate_imageandgenerate_videorun inside Code Mode instead of as top-level tools, so their definitions no longer add about 700 tokens to every request. (#66465)- Moving a session also moves its subagents. (#66215)
- The
reportskill checks the docs, searches for duplicate issues and includes the relevant log lines. (#66290) - Cost estimates for service tiers that list their own prices use those prices, including their long-context rates. (#65861, #65984)
Bug fixes
- Fixed sign-in to MCP servers whose configured URL has a query string, such as the AWS MCP Server. (#66036)
- Fixed Plan mode re-adding its reminder after every compaction, which could keep a session running in a loop. (#63669)
- Fixed tools staying visible to the model when a blanket deny was followed by narrower denies. (#65899)
- Fixed PDFs with bytes before the
%PDF-header not being read as PDFs. (#65967) - Fixed branches whose names end in
/HEADmissing from the branch list. (#65904) - Fixed files added by a patch losing a trailing blank line. (#66378)
- Fixed moving a session to a
~\path on Windows. (#66269) - Fixed OpenAI custom tool calls failing as malformed on providers that end them only with the completed response. (#65849)
TUI
Improvements
- The model picker stays responsive with large catalogs, such as OpenRouter's. (#66370)
- The goal dialog scrolls when the goal is long. (#65906)
- Updated OpenTUI to 0.9.9. (#65919)
Bug fixes
- Fixed
/modelsshowing only free models when the TUI opened a session in another directory. (#66424) - Fixed type-to-filter in Message Actions. (#65903)
- Fixed removing
themefrom config not switching back to the default theme. (#65925) - Fixed quick successive settings changes overwriting each other. (#65761)
- Fixed the session list losing the selected row after a deletion. (#65855)
Desktop
Improvements
- On macOS and Windows, desktop updates download only the parts of the app that changed instead of the full installer again. (#66042)
- Enter in the question dock moves to the next question and submits on the last one. Set Submit question answers with to Cmd/Ctrl+Enter in Settings β Preferences to keep the previous behavior. (#66169)
- To move the file tree to the right in the Files and Review panels, right-click its header and choose Sidebar position β Right. (#66012)
/renamewith no title generates a new title, and/rename <title>sets one. (#66396)- Search sessions also finds archived sessions and shows them dimmed. (#66356)
- In the Inbox sidebar, you can pin sessions, open archived sessions in a collapsible section and choose where working sessions appear. Archived sessions waiting on you show under Needs attention. (#65961, #66327)
- Cmd+Shift+S (Ctrl+Shift+S on Windows and Linux) unarchives the open session when it's archived. (#66327)
- Custom answers to questions can span several lines. (#66169)
- Subagent sessions show their parent session's side panel tabs. (#65957)
- Sessions in open tabs keep browser access after a restart or when an automation wakes them. (#65969)
Bug fixes
- Fixed older messages you had loaded disappearing after a reconnect. (#66035)
- Fixed the timeline jumping while older history loads or a focused row scrolls out of view, and made scrolling in long sessions smoother. (#66014, #65921, #66034, #65631)
- Fixed the background indicator flashing "1 shell" for each shell command a script runs. (#66402)
- Fixed screen readers skipping a reply while it's being written. (#66120)
- Fixed the app menu missing from the side tabs header on Linux. (#65912)
- Fixed the model list jumping when you unfavorite a model with the mouse. (#65649)
SDK
@opencode/sdk/workerd: forward your Durable Object'salarm()toopencode.alarm()so idle remote workspaces suspend. (#66183, #66240)
Extensions
- Promise plugin API calls honor
signal. Aborting rejects the call. (#65980) - Plugins can give an agent
instructionsthat apply while that agent is selected, without busting the prompt cache. Switching agents or changing the instructions mid-session sends an update instead of rewriting the system prompt. (#63669)
v2.4.1
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
/modelswithout a/connectlogin. (#65793) - Unread
/btwAnswers: 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_speedsenabled, 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_speedsenabled,/speedand/fastlist the current modelβs service tiers and relative prices. Thespeed.listandspeed.cyclekeybinds are available without default bindings. (#65749)
Bug fixes
- Fixed
/modelshiding models from config-only providers such as Ollama when no/connectlogin exists. (#65793)
Desktop
Improvements
- With
experimental.model_speedsenabled, models with service tiers have a speed dropdown beside the variant selector;/speedcycles through the available speeds. (#65749) - Layout choices in Settings now use consistent navigation-card previews and accent styling. (#65757, #65800)
Bug fixes
- Fixed
/btwanswers 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
v2.4.0
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": falsein 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
opencodetheme is the new one. Pickopencode-classicin 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_generateis nowgenerate_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 asname@^1.2.0), a Git branch or a Gitsemver: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 barename, an exact version, another tag such as@next, a Git tag or a commit hash doesn't update itself;opencode plugin updatestill updates those by hand. (#64764, #65052, #65056) - GitHub Copilot no longer reads
GITHUB_TOKEN. SetCOPILOT_GITHUB_TOKENor sign in with OAuth. (#64697) - MCP servers are tried on the newest protocol first. A server without a
protocolsetting is probed before falling back to the legacy handshake. Setprotocol: "legacy"on a server that misbehaves. (#65282) - The TUI
opencodetheme changed. It now means the new theme; setopencode-classicfor the previous look, andexperimental["new-designs"]: falsein 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
browserdeny in your permission rules refuses every agent browser call. (#63002) - OpenCode Go connects through OpenCode. The connect dialogs and
opencode auth loginlist 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+Son Windows and Linux) now archives the open session. The composer'sCmd+UandEscape/Ctrl+Gnow follow the Attach file and Stop session shortcuts. (#65428, #64394) - Code Mode session tool paths moved.
tools.opencode.session_renameandsession_moveare nowtools.opencode.session.renameand.move. Direct tool names and permission actions are unchanged. (#65080) - TUI plugins need OpenTUI 0.9.4.
@opencode/pluginrequires@opentui/coreand@opentui/solid0.9.4 or later. Renderers passed toregisterCodeBlockRenderernow receive an OpenTUI block (block.text) instead of a Markdown token;codeBlockStyleandescapedare 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.*andwebsearch.queryendpoints 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*.updatedevent, such asmodel.updated. One-shot scripts should wait on their side, for example by pollingplugin.listuntil 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: falserestores 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
/automationcommand or theautomationtools. A shell action asks for approval once, when it's created, and records each run's exit code and output. Set"automations": falseto 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
protocolsetting now negotiate the newest MCP protocol and fall back to the legacy handshake. (#65282) - Agents can generate videos with
generate_videowhenever 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 withexperimental.video_generate.model. The image tool is now calledgenerate_image. (#63666, #64546, #65664, #65682) - Plugins that follow a version (
name@latest, a version range, a Git branch or a Gitsemver: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
configDirsetting 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 fromopencode. (#62514, #65035, #65016) - Removing a Sign in with ChatGPT account, with
opencode auth logoutor 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...
v2.3.2
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
instructionsfield, 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/compactnow reads the same cached prefix. (#64542, #64544) webfetchstructured output no longer repeats theurlandformatit was called with. (#64534)
v2.3.1
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: 0now 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: falseto 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_backgroundflag is gone; configs that still set it keep loading. A foregroundtimeout: 0now 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. Theexperimental.background_compactionsetting is removed. (#64290) - OpenCode again reads
CLAUDE.mdin any directory that has noAGENTS.md, and falls back to~/.claude/CLAUDE.mdwhen the globalAGENTS.mdis missing. This also applies to instructions found when the agent reads nested files. SetOPENCODE_DISABLE_CLAUDE_CODEorOPENCODE_DISABLE_CLAUDE_CODE_PROMPTto skip everyCLAUDE.md. (#64474, #64533) - Added GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, to the ChatGPT model list. (#64508)
websearchnow returns a flat list of results, each with itsurl,title,contentandpublisheddate. (#64471)- Code Mode and plugins get a simpler structured result from
read:text(withoffset,lineCountandnext),directory(entry names) ormedia(a URI instead of base64). What the model sees is unchanged. (#64361) - Code Mode programs can use Node's
Bufferfor encoding and decoding bytes. (#64365) - In Code Mode,
search("issues")now works as shorthand forsearch({ 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
globandgreptools 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
UnknownErrorbody instead of an empty one. Storage problems name the cause (for example "Storage is full" or "Storage is read-only"); other crashes include arefyou can find in the server log. (#64022) - The shell tool description now tells the model that its session ID is in the
OPENCODE_SESSION_IDenvironment variable. (#63718) - Experimental schedules are now automations, behind the
automationsflag (the oldschedulesflag 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/automationor theautomation_*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 receivereasoning_detailsfrom 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)
readnow rejectslimit: 0with "Limit must be a positive integer". (#63808)- Text files that start with
BMare no longer mistaken for BMP images, and only realGIF87a/GIF89aheaders 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
grepresults 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.examplewhen file search uses ripgrep (the default on Windows and outside git repos)..gitand 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.beforenow 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
.catchandPromise.allSettledcan handle it instead of the whole script failing. (#64510) - A Code Mode program that only logs no longer shows a stray
nullline 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...
v1.19.6
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
Immutable
release. Only release title and notes can be modified.
opencode-pty 0.6.0 (protocol 9) from packages/process-daemon, published to npm as @opencode/pty@0.6.0.