OpenCode 2.4 defaults to stateless MCP and event automations OpenCode released version 2.4.0, which defaults MCP servers to the newest protocol by probing them before falling back to the legacy handshake, and adds event-driven automations that trigger prompts, scripts or shell commands on a timer, cron schedule or MCP server event. The release also renames the experimental_image_generate tool to generate_image, makes plugins pinned to name@latest, version ranges, Git branches or semver ranges self-update on startup and every 24 hours, and stops GitHub Copilot from reading GITHUB_TOKEN in favor of COPILOT_GITHUB_TOKEN or OAuth sign-in. Other additions include a built-in desktop browser that imports sign-ins and history from Chrome, Edge, Firefox or Safari, a generate_video tool for connected video-model providers, and Windows taskbar session status. Repository navigation v2.4.0 github-actions https://github.com/apps/github-actions released this · 108 commits https://github.com/anomalyco/opencode/compare/v2.4.0...dev to dev since this release 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 https://github.com/anomalyco/opencode/pull/63002 , 65073 https://github.com/anomalyco/opencode/pull/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 https://github.com/anomalyco/opencode/pull/65296 , 65186 https://github.com/anomalyco/opencode/pull/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 https://github.com/anomalyco/opencode/pull/63666 , 65664 https://github.com/anomalyco/opencode/pull/65664 - New TUI Look : The TUI's new designs are on by default, and the opencode theme is the new one. Pick opencode-classic in Theme to keep the previous colors. 64988 https://github.com/anomalyco/opencode/pull/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 https://github.com/anomalyco/opencode/pull/65317 , 65318 https://github.com/anomalyco/opencode/pull/65318 , 65319 https://github.com/anomalyco/opencode/pull/65319 Upgrade notes - Image tool renamed. experimental image generate is now generate image . Permission rules with the old name are mapped automatically, but saved "always allow" approvals are not, so it asks again once. 65682 https://github.com/anomalyco/opencode/pull/65682 - Plugins that follow a version now update on their own. A plugin written as name@latest , a version range such as name@^1.2.0 , a Git branch or a Git semver: range is checked on startup and every 24 hours, and a newer match is installed and reloaded. Ranges never leave their range, and if a new version fails to load the previous one keeps running. A bare name , an exact version, another tag such as @next , a Git tag or a commit hash doesn't update itself; opencode plugin update still updates those by hand. 64764 https://github.com/anomalyco/opencode/pull/64764 , 65052 https://github.com/anomalyco/opencode/pull/65052 , 65056 https://github.com/anomalyco/opencode/pull/65056 - GitHub Copilot no longer reads GITHUB TOKEN . Set COPILOT GITHUB TOKEN or sign in with OAuth. 64697 https://github.com/anomalyco/opencode/pull/64697 - MCP servers are tried on the newest protocol first. A server without a protocol setting is probed before falling back to the legacy handshake. Set protocol: "legacy" on a server that misbehaves. 65282 https://github.com/anomalyco/opencode/pull/65282 - The TUI opencode theme changed. It now means the new theme; set opencode-classic for the previous look, and experimental "new-designs" : false in your TUI config for the previous designs. 64988 https://github.com/anomalyco/opencode/pull/64988 - Chat links open in the browser pane. In the desktop app, web links from the chat open beside the conversation. Modifier-click a link to open it in your system browser. A browser deny in your permission rules refuses every agent browser call. 63002 https://github.com/anomalyco/opencode/pull/63002 - OpenCode Go connects through OpenCode. The connect dialogs and opencode auth login list one OpenCode option that includes Go models. OpenCode Go is only listed when a Go key is already saved, and saved keys keep working. 65466 https://github.com/anomalyco/opencode/pull/65466 - New desktop shortcut. Cmd+Shift+S Ctrl+Shift+S on Windows and Linux now archives the open session. The composer's Cmd+U and Escape / Ctrl+G now follow the Attach file and Stop session shortcuts. 65428 https://github.com/anomalyco/opencode/pull/65428 , 64394 https://github.com/anomalyco/opencode/pull/64394 - Code Mode session tool paths moved. tools.opencode.session rename and session move are now tools.opencode.session.rename and .move . Direct tool names and permission actions are unchanged. 65080 https://github.com/anomalyco/opencode/pull/65080 - TUI plugins need OpenTUI 0.9.4. @opencode/plugin requires @opentui/core and @opentui/solid 0.9.4 or later. Renderers passed to registerCodeBlockRenderer now receive an OpenTUI block block.text instead of a Markdown token; codeBlockStyle and escaped are gone. 63989 https://github.com/anomalyco/opencode/pull/63989 - SDK: plugins load in the background again. Plugins are meant to load asynchronously, and the server never waits for them. In v2.2.7 the model, provider, generate. , voice. and websearch.query endpoints started waiting up to 5 seconds for plugins and returning 503 after that 63040 https://github.com/anomalyco/opencode/pull/63040 ; this release removes that wait. Right after startup these endpoints answer with whatever has loaded, so a list can be empty or partial. Long-lived clients should refresh on the matching .updated event, such as model.updated . One-shot scripts should wait on their side, for example by polling plugin.list until it returns plugins, or the endpoint until the entry they need appears. 63814 https://github.com/anomalyco/opencode/pull/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 https://github.com/anomalyco/opencode/pull/65506 - Storage write path. Assistant parts are now saved as their own rows. experimental.part rows: false restores the old path for this release. 65039 https://github.com/anomalyco/opencode/pull/65039 Core Improvements - Added automations. Agents can schedule prompts, Code Mode scripts or fixed shell commands to run once, on an interval, on a cron schedule or when a connected MCP server pushes an event. Use the /automation command or the automation tools. A shell action asks for approval once, when it's created, and records each run's exit code and output. Set "automations": false to turn them off. 65296 https://github.com/anomalyco/opencode/pull/65296 , 65186 https://github.com/anomalyco/opencode/pull/65186 , 65217 https://github.com/anomalyco/opencode/pull/65217 , 65236 https://github.com/anomalyco/opencode/pull/65236 , 65001 https://github.com/anomalyco/opencode/pull/65001 , 65699 https://github.com/anomalyco/opencode/pull/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 https://github.com/anomalyco/opencode/pull/65271 , 65673 https://github.com/anomalyco/opencode/pull/65673 - MCP servers without a protocol setting now negotiate the newest MCP protocol and fall back to the legacy handshake. 65282 https://github.com/anomalyco/opencode/pull/65282 - Agents can generate videos with generate video whenever a connected provider has a video model. The job runs in the background, survives a server restart, saves the finished videos into the workspace and wakes the agent with their paths. Set a default model with experimental.video generate.model . The image tool is now called generate image . 63666 https://github.com/anomalyco/opencode/pull/63666 , 64546 https://github.com/anomalyco/opencode/pull/64546 , 65664 https://github.com/anomalyco/opencode/pull/65664 , 65682 https://github.com/anomalyco/opencode/pull/65682 - Plugins that follow a version name@latest , a version range, a Git branch or a Git semver: range are checked on startup and every 24 hours, and a newer match is installed and reloaded without a restart. A range stays within its range, and if a new version fails to load, the previous one keeps running. Other plugins still only report updates. 64764 https://github.com/anomalyco/opencode/pull/64764 , 65052 https://github.com/anomalyco/opencode/pull/65052 , 65056 https://github.com/anomalyco/opencode/pull/65056 - The Claude Agent provider has a configDir setting for a Claude config folder other than the default. Given a list of folders, a chat moves to the next account when one hits its usage limit. Claude Agent sessions also show up in Claude Code as coming from opencode . 62514 https://github.com/anomalyco/opencode/pull/62514 , 65035 https://github.com/anomalyco/opencode/pull/65035 , 65016 https://github.com/anomalyco/opencode/pull/65016 - Removing a Sign in with ChatGPT account, with opencode auth logout or the remove button in the app, now also revokes it with OpenAI. 64947 https://github.com/anomalyco/opencode/pull/64947 - The ChatGPT plan model lists now come from models.dev, so new models show up without an OpenCode update. 65579 https://github.com/anomalyco/opencode/pull/65579 - Voice models are now listed from models.dev, adding newer OpenAI models such as gpt-live-1.1 . 65491 https://github.com/anomalyco/opencode/pull/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 https://github.com/anomalyco/opencode/pull/65611 - The 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 https://github.com/anomalyco/opencode/pull/65365 , 65513 https://github.com/anomalyco/opencode/pull/65513 - Code Mode scripts can define getters and setters, errors have a stack showing where they were thrown, and a failed import says why. 64908 https://github.com/anomalyco/opencode/pull/64908 , 64939 https://github.com/anomalyco/opencode/pull/64939 , 64587 https://github.com/anomalyco/opencode/pull/64587 - A 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 https://github.com/anomalyco/opencode/pull/64692 - Gemma 4 models on Google's Interactions API offer the none and thinking variants, and the provider's safetySettings are sent to Interactions. 65038 https://github.com/anomalyco/opencode/pull/65038 , 65036 https://github.com/anomalyco/opencode/pull/65036 - Added 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 https://github.com/anomalyco/opencode/pull/65704 - With full codemode on, agents can call tools.opencode.session.interrupt to stop another session, its background jobs and its subagents. 65718 https://github.com/anomalyco/opencode/pull/65718 - Stored 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 https://github.com/anomalyco/opencode/pull/65671 - Config now reloads only when a file that feeds it changes, not on every write under .opencode such as editing a skill. 62158 https://github.com/anomalyco/opencode/pull/62158 - Each streamed assistant part is saved as its own row instead of rewriting the whole message on every update, so long steps with many tool calls save reliably. 65039 https://github.com/anomalyco/opencode/pull/65039 Bug fixes - Fixed GitHub Copilot picking up GITHUB TOKEN , which git tooling and GitHub Actions often set without Copilot access. It now reads COPILOT GITHUB TOKEN . 64697 https://github.com/anomalyco/opencode/pull/64697 - Fixed 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 https://github.com/anomalyco/opencode/pull/65269 - Fixed 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 https://github.com/anomalyco/opencode/pull/65292 , 65193 https://github.com/anomalyco/opencode/pull/65193 , 65494 https://github.com/anomalyco/opencode/pull/65494 - Fixed a forced tool choice for a namespaced tool naming a tool the request never declared on every provider except native OpenAI Responses. 65621 https://github.com/anomalyco/opencode/pull/65621 , 65726 https://github.com/anomalyco/opencode/pull/65726 - Fixed the shell tool's description not saying which OS and shell commands run in when full codemode is on. 65712 https://github.com/anomalyco/opencode/pull/65712 - Fixed a revoked or expired ChatGPT sign-in failing every prompt with "Request failed: 400". It now asks you to connect again. 65289 https://github.com/anomalyco/opencode/pull/65289 - Fixed 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 https://github.com/anomalyco/opencode/pull/64868 - Fixed the review pane showing every line as changed in repositories with core.autocrlf=true , and symlinks as modified with core.symlinks=false . 64884 https://github.com/anomalyco/opencode/pull/64884 - Fixed file permission rules not matching other capitalizations of the same path on macOS. Thanks @knp-sap https://github.com/knp-sap . 64626 https://github.com/anomalyco/opencode/pull/64626 - Fixed the model picker staying empty while a slow project was still loading. 63814 https://github.com/anomalyco/opencode/pull/63814 - Fixed Claude Agent processes staying alive after their session was deleted. Thanks @WTLAIB https://github.com/WTLAIB . 62649 https://github.com/anomalyco/opencode/pull/62649 - Fixed 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 https://github.com/anomalyco/opencode/pull/65032 , 65064 https://github.com/anomalyco/opencode/pull/65064 - Fixed shell commands failing with "failed to open output file" after OpenCode's shell output directory was removed. 64889 https://github.com/anomalyco/opencode/pull/64889 - Fixed concurrent shell commands failing on Windows with PowerShell 7 from the Microsoft Store, and stopping one such command killing the others. 64901 https://github.com/anomalyco/opencode/pull/64901 - Fixed opencode service set password writing the password to the CLI log. 64911 https://github.com/anomalyco/opencode/pull/64911 - Fixed opencode run hanging when a FIFO is passed as an attachment; it's now rejected right away. Thanks @yang0228 https://github.com/yang0228 . 64696 https://github.com/anomalyco/opencode/pull/64696 - Fixed opencode