Skip to content

Changelog

New updates and improvements to OpenCode

  1. v2.4.2

    GPT-6.2 System Prompt

    GPT-6.2 Sol and Astra, and the gpt-latest aliases, use a system prompt written for GPT-6.2.#66297

    See all highlights in v2.4.2

    Improvements 7

    • Upgrade notes, ExtensionsPlan mode's rules are in the system prompt. Sessions already in Plan mode get the rules once more after upgrading.#63669
    • Coregenerate_image and generate_video run inside Code Mode instead of as top-level tools, so their definitions no longer add about 700 tokens to every request.#66465
    • CoreMoving a session also moves its subagents.#66215
    • CoreThe report skill checks the docs, searches for duplicate issues and includes the relevant log lines.#66290
    • CoreCost estimates for service tiers that list their own prices use those prices, including their long-context rates.#65861#65984
    • SDK@opencode/sdk/workerd: forward your Durable Object's alarm() to opencode.alarm() so idle remote workspaces suspend.#66183#66240
    • ExtensionsPromise plugin API calls honor signal. Aborting rejects the call.#65980

    Fixes 8

    • CoreFixed sign-in to MCP servers whose configured URL has a query string, such as the AWS MCP Server.#66036
    • CoreFixed Plan mode re-adding its reminder after every compaction, which could keep a session running in a loop.#63669
    • CoreFixed tools staying visible to the model when a blanket deny was followed by narrower denies.#65899
    • CoreFixed PDFs with bytes before the %PDF- header not being read as PDFs.#65967
    • CoreFixed branches whose names end in /HEAD missing from the branch list.#65904
    • CoreFixed files added by a patch losing a trailing blank line.#66378
    • CoreFixed moving a session to a ~\ path on Windows.#66269
    • CoreFixed OpenAI custom tool calls failing as malformed on providers that end them only with the completed response.#65849
  2. v2.4.1

    macOS 12 Session Fix

    OpenCode can save assistant messages again on the older SQLite version included with macOS 12.#65771

    See all highlights in v2.4.1

    Improvements

    • Core, Terminal, DesktopWith experimental.model_speeds enabled, model service tiers are exposed as remembered speeds instead of separate model-picker entries.#65749
    • ExtensionsEffect and Promise plugins can create, list and delete automations through ctx.experimental.automation.{create,list,delete}.#65747
    • Extensions@opencode/plugin now supports @opentui/core and @opentui/solid from version 0.8.0, allowing plugins capped below OpenTUI 0.9 to install again.#65819

    Fixes

    • CoreFixed compaction retaining more recent history than keep.tokens, including when a single newest message already exceeds the allowance.#65768
    • CoreFixed occasional extra cache cost in long goal sessions after a compaction.#65788
    • SDKAn aborted shared event subscription now stops immediately even when the source has already completed or failed with buffered events remaining. Thanks @chirag127.#65441
  3. v2.4.0

    Built-In Desktop Browser

    Import your sign-ins and browsing history from Chrome, Edge, Firefox or Safari, and add extensions from Chromium browsers or the Chrome and Edge stores. Everything stays in one persistent desktop profile: chat links open signed in, your tabs survive restarts and the agent can read and drive the same pages without you switching apps.#63002#65073

    Automations

    Ask the agent to run a prompt, a script or a shell command on a timer, on a cron schedule or when an MCP server sends an event, and manage them with /automation. Set "automations": false in your config if you don't want them.#65296#65186

    Generate Videos

    When a connected provider has a video model, the agent can make videos with generate_video. It keeps working while the video renders and saves the files into your workspace when they're ready.#63666#65664

    See all highlights in v2.4.0

    Improvements 25

    • Upgrade notes, CorePlugins that follow a version now update on their own. A plugin written as name@latest, a version range (such as name@^1.2.0), a Git branch or a Git semver: range is checked on startup and every 24 hours, and a newer match is installed and reloaded. Ranges never leave their range, and if a new version fails to load the previous one keeps running. A bare name, an exact version, another tag such as @next, a Git tag or a commit hash doesn't update itself; opencode plugin update still updates those by hand.#64764#65052#65056
    • Upgrade notes, CoreMCP servers are tried on the newest protocol first. A server without a protocol setting is probed before falling back to the legacy handshake. Set protocol: "legacy" on a server that misbehaves.#65282
    • Upgrade notes, CoreStorage write path. Assistant parts are now saved as their own rows. experimental.part_rows: false restores the old path for this release.#65039
    • CoreAdded automations. Agents can schedule prompts, Code Mode scripts or fixed shell commands to run once, on an interval, on a cron schedule or when a connected MCP server pushes an event. Use the /automation command or the automation tools. A shell action asks for approval once, when it's created, and records each run's exit code and output. Set "automations": false to turn them off.#65296#65186#65217#65236#65001#65699
    • CoreMCP 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
    • CoreAgents can generate videos with generate_video whenever a connected provider has a video model. The job runs in the background, survives a server restart, saves the finished videos into the workspace and wakes the agent with their paths. Set a default model with experimental.video_generate.model. The image tool is now called generate_image.#63666#64546#65664#65682
    • CoreThe Claude Agent provider has a configDir setting for a Claude config folder other than the default. Given a list of folders, a chat moves to the next account when one hits its usage limit. Claude Agent sessions also show up in Claude Code as coming from opencode.#62514#65035#65016
    • Core, ExtensionsRemoving a Sign in with ChatGPT account, with opencode auth logout or the remove button in the app, now also revokes it with OpenAI.#64947
    • CoreThe ChatGPT plan model lists now come from models.dev, so new models show up without an OpenCode update.#65579
    • CoreVoice models are now listed from models.dev, adding newer OpenAI models such as gpt-live-1.1.#65491
    • CoreReading far into a large file with read, or reading its tail, takes far fewer reads, which is much faster on remote workspaces.#65611
    • CoreThe shell tool's result says why a command ended without an exit code, and lists its output after the smaller fields so they survive truncation.#65365#65513
    • CoreCode Mode scripts can define getters and setters, errors have a stack showing where they were thrown, and a failed import says why.#64908#64939#64587
    • CoreA timeout set on a provider now applies to every request, including image, video, speech, transcription, embedding and compaction requests, which previously could hang forever on a stalled provider.#64692
    • CoreGemma 4 models on Google's Interactions API offer the none and thinking variants, and the provider's safetySettings are sent to Interactions.#65038#65036
    • CoreAdded claude-agent as a web search provider. With Claude Agent connected, set "websearch": { "provider": "claude-agent" } to run websearch through Claude Code's WebSearch, which Claude plans include, so any model can search without a search API key.#65704
    • CoreWith full_codemode on, agents can call tools.opencode.session.interrupt to stop another session, its background jobs and its subagents.#65718
    • CoreStored blobs, such as generated videos, are deleted a week after they were written, so the data folder no longer grows without limit. Copies saved into your project are untouched; GET /api/experimental/blob/:id returns 404 for a deleted blob.#65671
    • CoreConfig now reloads only when a file that feeds it changes, not on every write under .opencode such as editing a skill.#62158
    • SDKAdded experimental.job.cancel to cancel a running background job, and an experimental.job.updated event when a job starts, moves to the background or ends. @opencode/client/solid's createData has a job slice.#64790#65266#64956
    • SDKThe video endpoints (experimental.generate.video.create and .get) no longer need a flag. Video jobs survive a server restart, can return more than one video, and stay readable for 24 hours after they finish.#65664#64546
    • ExtensionsA plugin tool can set options.codemode to an object ({ pinned?, description?, input?, output? }) to give its Code Mode form its own description and schemas. Top-level options.pinned still works but is deprecated.#64515
    • ExtensionsTUI plugins can read a session's running background jobs with api.data.job.list(sessionID) (experimental).#64956
    • ExtensionsGUI plugins can declare their own SVG icons with Plugin.define({ icons }) and use them through ctx.icons. The built-in outline-pair and outline-steer icons were removed.#64577
    • ExtensionsThe GUI composer API adds composer.send(commentID) and composer.delivery(), and the Browser contract adds experimental.open and experimental.close.#65264#63002

    Fixes 28

    • CoreFixed GitHub Copilot picking up GITHUB_TOKEN, which git tooling and GitHub Actions often set without Copilot access. It now reads COPILOT_GITHUB_TOKEN.#64697
    • CoreFixed shell commands the scanner can't analyze, such as dynamic execution, failing outright. They now ask for permission, and a matching shell deny rule still blocks them.#65269
    • CoreFixed sessions getting stuck on provider 400 errors after a model called a tool by a dotted name such as a Code Mode path. A Code Mode tool called at the top level now runs as that tool, with a note telling the model to use execute.#65292#65193#65494
    • CoreFixed a forced tool choice for a namespaced tool naming a tool the request never declared on every provider except native OpenAI Responses.#65621#65726
    • CoreFixed the shell tool's description not saying which OS and shell commands run in when full_codemode is on.#65712
    • CoreFixed a revoked or expired ChatGPT sign-in failing every prompt with "Request failed: 400". It now asks you to connect again.#65289
    • CoreFixed edit and patch replacing every non-UTF-8 character (Latin-1, cp1252, GBK…) with � across the whole file. They now refuse to rewrite such files.#64868
    • CoreFixed the review pane showing every line as changed in repositories with core.autocrlf=true, and symlinks as modified with core.symlinks=false.#64884
    • CoreFixed file permission rules not matching other capitalizations of the same path on macOS. Thanks @knp-sap.#64626
    • CoreFixed the model picker staying empty while a slow project was still loading.#63814
    • CoreFixed Claude Agent processes staying alive after their session was deleted. Thanks @WTLAIB.#62649
    • CoreFixed Claude Agent models becoming unavailable after Claude Code renamed them, and Claude Agent now waits up to 60 seconds for its process to start.#65032#65064
    • CoreFixed shell commands failing with "failed to open output file" after OpenCode's shell output directory was removed.#64889
    • CoreFixed concurrent shell commands failing on Windows with PowerShell 7 from the Microsoft Store, and stopping one such command killing the others.#64901
    • CoreFixed opencode service set password writing the password to the CLI log.#64911
    • CoreFixed opencode run hanging when a FIFO is passed as an attachment; it's now rejected right away. Thanks @yang0228.#64696
    • CoreFixed opencode <name> crashing with a stack trace when <name> is neither a command nor a directory. It now prints help and the error.#65262
    • CoreFixed the background service becoming unresponsive at startup with a large database write-ahead log on a slow disk.#64532
    • CoreFixed a client that opens a session during a running tool call not seeing that tool's progress, such as a running subagent's session.#64929
    • CoreFixed Markdown commands dropping a separate variant next to model, and agents being skipped when frontmatter repair turned inline lists or objects into strings.#65118#65119
    • CoreFixed Google Interactions responses stopping early when Google splits a response across requests.#65006
    • CoreFixed GPT models over OpenAI's WebSocket transport resending the whole conversation after a freeform tool call such as execute or patch.#64706
    • CoreFixed gpt-6.2-astra and later Astra models getting a 500k context window with ChatGPT sign-in; they stay at 272k.#64725
    • CoreOpenAI cyber_policy and Gemini "terms of use" refusals are now reported as content policy errors. Thanks @lu-zero.#64844#64910
    • CoreFixed MiniMax text-to-video requests without an aspect ratio being rejected; they now default to 16:9.#64822
    • CoreFixed several Code Mode built-ins to match Bun: localeCompare and Date toLocale* honor their locale and options, toBase64/fromBase64 honor their options, Buffer map, filter, slice and subarray return a Buffer, and Uint8Array.BYTES_PER_ELEMENT is defined.#64935#64938#64931#64933#64930#64965
    • CoreFixed large file views not refreshing when only the end of the file changed.#65114
    • CoreFixed the install script failing with a disk-space error when curl is installed through Snap.#65132
  4. v2.3.2

    GPT-6.2 Prompt Caching

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

    Fixes

    • Corewebfetch structured output no longer repeats the url and format it was called with.#64534
  5. v2.3.1

    Timed-Out Shell Commands Keep Running

    A shell command still running when its timeout expires now moves to the background instead of being killed, so long builds and test runs finish and report back. A foreground timeout: 0 now means the default 120 seconds.#63699

    Compaction Without the Wait

    As a session nears automatic compaction, the summary is now written in the background, so your next prompt doesn't pause for it. Set compaction.background: false to turn it off; a background summary that ends up unused still costs tokens.#64290

    GPT 6.2 with ChatGPT Sign-In

    GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT.#64508

    See all highlights in v2.3.1

    Improvements 12

    • CoreOpenCode again reads CLAUDE.md in any directory that has no AGENTS.md, and falls back to ~/.claude/CLAUDE.md when the global AGENTS.md is missing. This also applies to instructions found when the agent reads nested files. Set OPENCODE_DISABLE_CLAUDE_CODE or OPENCODE_DISABLE_CLAUDE_CODE_PROMPT to skip every CLAUDE.md.#64474#64533
    • Corewebsearch now returns a flat list of results, each with its url, title, content and published date.#64471
    • CoreCode Mode and plugins get a simpler structured result from read: text (with offset, lineCount and next), directory (entry names) or media (a URI instead of base64). What the model sees is unchanged.#64361
    • CoreCode Mode programs can use Node's Buffer for encoding and decoding bytes.#64365
    • CoreIn Code Mode, search("issues") now works as shorthand for search({ query: "issues" }).#64347
    • CoreCode 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
    • CoreThe glob and grep tools now report a malformed filename glob (for example [) as an error that names the parameter to fix, instead of returning no results.#63960
    • Core, SDKServer requests that crash now return a 500 with a readable JSON UnknownError body instead of an empty one. Storage problems name the cause (for example "Storage is full" or "Storage is read-only"); other crashes include a ref you can find in the server log.#64022
    • CoreThe shell tool description now tells the model that its session ID is in the OPENCODE_SESSION_ID environment variable.#63718
    • Core, SDKExperimental schedules are now automations, behind the automations flag (the old schedules flag still works). An automation runs on a time, an interval, a cron or a pushed MCP event, and either sends a prompt (to the creating session, another session or a new subagent) or runs a Code Mode program that decides whether to send one. Use /automation or the automation_* tools. Active or paused plain prompt schedules carry over; schedules with a condition or run limit, and finished ones, are dropped.#64160
    • ExtensionsEach tool call inside a Code Mode program now has its own call ID in plugin hooks and traces. Its permission requests still show on the execute call's row.#64324
    • ExtensionsPlugin SessionIdleBackground items can now be { kind: "codemode", sessionID, jobID }, and GUI plugin BridgeLayout accepts an optional clip rectangle.#64343#63819

    Fixes 23

    • CoreFixed 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
    • CoreFixed ChatGPT and OpenAI subscription logins losing their sharing-limit safeguards and context caps when a token refresh failed.#64470
    • CoreFixed Claude Agent models falling back to a 200K context window when Claude Code adds or renames a model. Thanks @Tarquinen.#64107
    • CoreFixed requests being rejected after switching models mid-session on OpenAI-compatible providers. Models that declare a different reasoning field (such as reasoning_content) no longer receive reasoning_details from earlier turns.#64243
    • CoreRejecting a permission request now rejects only the other pending requests from the same step, not every pending request in the session.#64343
    • CoreFixed a finished subagent being reported to its parent as still running when its answer quoted the "Background work still running" heading.#64026
    • CoreFixed ACP clients missing turns that a background shell woke after the original turn ended.#64262
    • CoreReading 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
    • CorePaged reads that select a single blank line now return that line instead of an empty result.#63809
    • Coreread now rejects limit: 0 with "Limit must be a positive integer".#63808
    • CoreText files that start with BM are no longer mistaken for BMP images, and only real GIF87a/GIF89a headers count as GIFs, so these files read as text again.#63822#63811
    • CoreFixed 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
    • CoreShell 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
    • CoreSession title search is now case-insensitive for non-ASCII letters, such as Cyrillic and accented text.#64259
    • CoreFixed grep results being dropped when a matching line or path is not valid UTF-8. Thanks @Tarquinen.#62249
    • CoreThe @ file picker now finds files in hidden folders such as .github/ and dotfiles such as .env.example when file search uses ripgrep (the default on Windows and outside git repos). .git and gitignored files stay excluded. Thanks @Tarquinen.#62577
    • CoreAn unreachable well-known integration source is now skipped instead of dropping every well-known source. Thanks @Tarquinen.#62578
    • CoreA corrupt cached project ID is now ignored instead of being used. Thanks @Tarquinen.#62576
    • CorePlugin tool renames from tool.execute.before now apply to calls inside Code Mode programs, and a renamed call returns the new tool's structured result.#63633#64333
    • CoreIn Code Mode, calling a tool that doesn't exist now returns a rejected promise, so .catch and Promise.allSettled can handle it instead of the whole script failing.#64510
    • CoreA Code Mode program that only logs no longer shows a stray null line before its logs.#64344
    • SDKApps embedding the SDK with an in-memory database no longer import the user's legacy auth.json credentials. Only a database file opened by path imports them.#63716
    • ExtensionsThe browser extension's URL bar action buttons are now spaced 6px apart.#64214
  6. v1.19.6

    Sessions with many images no longer send oversized requests

    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.

    Fixes

    • CoreA provider error for a request body that is too large now starts compaction and a retry instead of failing the turn.
  7. v2.3.0

    Background Subagents by Default

    Subagents now return immediately, continue in the background, and report back whenever they become idle. You can keep working in the parent session while multiple subagents run concurrently.#63382

    See all highlights in v2.3.0

    Improvements 20

    • CoreAdded experimental support for MCP events, behind the mcp_events flag.#63254#63261#63269
    • CoreShell commands now survive server handoffs and keep their output when interrupted.
    • CoreAdded experimental support for moving a shell command to the background when its timeout expires, behind the shell_timeout_background flag. With the flag on, an explicit timeout on a background command stops it.#63024#63703
    • CoreLocal Windows shell commands now run through the process daemon.
    • CoreAdded support for freeform tool input on compatible models.
    • CoreAdded LM Studio decision-model support.
    • CoreAgents are now told when their session is a fork. Thanks @hasta84.#63235
    • CoreTool output truncation now keeps the beginning of the output and preserves a usable preview if the full output cannot be saved.
    • CoreTail reads no longer load the entire file into memory.
    • CoreProviders can present a client certificate for gateways that require mutual TLS. Set settings.tls with cert, key and an optional passphrase on the provider; values accept {file:} and {env:} like apiKey.#61832
    • CoreWhen a subagent goes idle while its own background work is still running, its report to the parent now says it is still running, so the parent waits for the final report instead of treating the partial answer as done.#63675
    • CoreCode Mode gets simpler structured results from file and skill tools: write and edit return their confirmation as a string, patch returns an empty result, and skill returns the skill's directory and content.#63616#63635#63618#63623
    • SDKEvent subscriptions can now receive experimental.mcp.event events from MCP event subscriptions.
    • SDKModel capability schemas now advertise supported freeform tool-input formats.
    • SDKSession throughput is now measured from the first streamed token.
    • SDKSession creation documentation now clarifies the parentID field.
    • ExtensionsPromise-based tools can cooperatively stop through ToolContext.signal.
    • ExtensionsAdded the experimental session.fork hook.
    • ExtensionsPromise plugin cleanup failures no longer prevent subsequent plugin replacements.
    • Extensions@opencode/plugin/effect now exports Tool, so an execute.before hook can reject a call with Tool.Error without importing @opencode/schema/tool.#63698

    Fixes 12

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

    MCP Logins Stay Signed In

    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

    See all highlights in v2.2.7

    Breaking changes

    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

    Improvements 8

    • Coreread accepts a negative offset to read from the end of a file, such as -50 for the last 50 lines. An offset past the end returns the last lines and the file's line count instead of failing.#62147
    • CoreShell 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
    • CorePrompt cache warming times its pings from the model's cache.ttl by default (interval: "auto"), or every 4 minutes without a TTL. Models whose cache outlasts the warming duration are no longer pinged.#62831
    • CoreWhen 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
    • SDKsession.generate returns tokens and cost along with text.#62835
    • SDKcredential.updated includes the integrationID and credentialID of the login that changed.#62762
    • SDKPredicate questions in client.experimental.generate.decisions accept optional criteria: { true?, false? }.#62819
    • ExtensionsACP clients can redirect a running turn with the _session/steering extension, advertised as _meta.steering.supported in initialize.#54394@smagnuso

    Fixes 24

    • CoreGitHub 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
    • CoreGitHub 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
    • CoreRemote 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
    • CoreA temporary failure while refreshing an MCP OAuth token keeps your login for the next try instead of marking the server needs_auth.#63012
    • CoreMCP 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
    • CoreMCP prompts stay available when refreshing a server's prompt list fails.#62266
    • CoreWith background_compaction on, a background summary no longer stops a running Claude Agent session mid tool call.#63025
    • CoreAfter opencode auth logout on a .well-known integration, its remote providers and policies stop applying until you log back in.#62760
    • CoreOpenCode Console workspace policies still apply when Console's instructions or skills fail to load.#62702
    • CoreCloudflare AI Gateway providers set up with only gatewayApiKey now send that key.#62574
    • CoreA v1 model override that sets only some capabilities no longer resets the others, so catalog capabilities like PDF input are kept.#62573
    • CoreA v1 provider config that sets both api and options.baseURL keeps options.baseURL.#62570
    • CoreLegacy model references with an inline variant, such as "openai/gpt-5#high", keep the variant.#62254
    • CoreA fresh install imports saved provider credentials from the legacy auth.json, and skips an invalid one with a warning instead of stopping setup.#62568
    • CoreCache 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
    • CoreTokens and cost from session.generate requests, including cache warming pings, count toward the session's totals.#63006
    • CoreUnder zsh, a glob that matches nothing, like rm *.tmp, is passed through as bash does instead of stopping the command.#62141
    • CoreOn Windows, multi-line commands no longer lose everything after the first line with PowerShell 7 from the Microsoft Store.#62522
    • Coreread no longer cuts an emoji in half when it shortens a long line.#62575
    • CoreGenerated session titles no longer include the model's commentary.#62267@shanebishop1
    • CoreMarkdown agents whose description starts with a bracketed tag, like [Beta] Reviews code, now load.#62250
    • CoreMarkdown agent and command files that fail to load log a warning with the file path and frontmatter error.#62464#62251
    • CoreMarkdown agent discovery skips node_modules.#62571
    • CoreFailed plugin installs from git show git's own error instead of "An unknown git error occurred".#62261
  9. v2.2.6

    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

    Scripted Runs in Worktrees

    Run opencode run -w to start the session in a new git worktree, or --worktree=<name> to name it.#60712

    Automatically Archived Runs

    Add --archived to opencode run to keep scripted and CI sessions out of your inbox and session lists.#61270

    See all highlights in v2.2.6

    Improvements 7

    • CoreAdded provider- and model-specific session warming settings, including an interval: "auto" mode based on cache TTL.#60025#60969
    • CoreAdded the websearch.use policy action and switches for enabling all feature flags with OPENCODE_FLAGS=all or experimental.all_flags.#61557#61826
    • CoreAdded an experimental bytecode VM for Code Mode. It is off by default; turn it on with experimental.codemode_vm: true or OPENCODE_FLAGS=codemode_vm.#62358
    • CoreAdded support for Microsoft Store installations of PowerShell 7 on Windows.#61952
    • CoreAdded Azure Messages support for Foundry Claude models.#60934
    • SDKAdded client.experimental.job.list() and its Effect equivalent for listing background shell, subagent, and image jobs, with session, descendant, kind, and status filters.#60698
    • SDKServer embedders can provide a custom fetch implementation for OpenCode HTTP, model, web, and remote MCP traffic.#61582

    Fixes 13

    • Coreopencode run now waits for the background shell commands, subagents, and image jobs that its prompt started, then lets the model respond to their results before it exits. While it waits, it prints waiting for N background job(s) (a background_wait event with --format json). There is no time limit: a job that never exits, such as a dev server or file watcher, keeps the run open until you press Ctrl+C or send SIGTERM, so set a timeout on CI jobs.#60699#61911
    • CoreReworked noninteractive opencode run execution so arguments, cancellation, compiled WebSocket upgrades, and service shutdown complete reliably. SIGTERM now cancels the session and its background jobs and exits with code 143.#61911#61721#61518#61564
    • CoreServe 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
    • CoreWebfetch and Code Mode fetch now reject URLs that contain credentials and ignore the #fragment when matching permission rules, and Code Mode fetch checks every redirect against your webfetch rules.#60502#61701#62373
    • CoreAsk for external_directory permission before session_move leaves the current project.#62204
    • CoreWait up to 2 seconds for MCP servers that are still connecting before a model call, so tools from servers that connect quickly reach the first prompt and opencode run. Also expand ~ in local MCP working directories, handle legacy stdio servers, and send logo_uri during dynamic registration.#60490#61496#61817#59031
    • CoreTime out OpenCode Console config requests after 5 seconds, so startup no longer hangs when the Console accepts the connection but never answers.#62404
    • CoreRetry provider requests while their host is unreachable and recover prematurely ended Cohere streams.#61880#61184
    • CoreKeep legacy custom providers whose models set only part of limit, such as only limit.context, instead of dropping the whole provider without an error. Thanks @Tarquinen.#62240
    • Coreopencode acp now removes a session that a client creates with session/new and closes without prompting, so IDE integrations no longer leave empty sessions behind.#62189
    • CorePrevent repeated zsh q flags from freezing shell permission scanning. Thanks @yangguan-xue.#60791
    • CoreAllow npm upgrade install scripts again. Thanks @renatomoselli.#51554
    • ExtensionsIsolated plugin dialogs, Markdown renderers, terminal views, lazy chunks, and artifact viewers so failures do not take down their host surface.#62110#62123#61993
  10. v2.2.5

    Percentage Compaction Buffer

    Set "compaction": { "buffer": "20%" } in opencode.json to 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

    See all highlights in v2.2.5

    Improvements

    • CoreWhen read misses because a folder is missing, the error names that folder and the nearest one that exists.#60688
    • CoreWhen edit can't find oldString, the error shows the file's closest lines, or says the change is already there.#60689
    • CoreCalls to a tool named bash now run as shell instead of failing, with the same permissions. A plugin tool actually named bash still takes precedence.#60687

    Fixes

    • CoreMCP servers that send stdio messages larger than 10 MiB no longer get disconnected, and large messages are read much faster.#60694
    • CoreIdle locations no longer restart their MCP servers right after shutting down.#60668
    • CoreCompaction now caps its prompt at the model's context window when the input limit is larger.#60660
    • CoreLiteLLM context window errors now trigger compaction instead of stopping the session.#60692
    • CoreReasoning is no longer turned into plain text when you switch models or resume an interrupted response, which caused request errors on some providers.#60498