{"slug": "opencode-2-4-defaults-to-stateless-mcp-and-event-automations", "title": "OpenCode 2.4 defaults to stateless MCP and event automations", "summary": "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.", "body_md": "## Repository navigation\n\n# v2.4.0\n\n[github-actions](https://github.com/apps/github-actions)released this\n\n          ·\n          \n\n[108 commits](https://github.com/anomalyco/opencode/compare/v2.4.0...dev)to dev since this release\n            Immutable\n            release. Only release title and notes can be modified.\n\n### Highlights\n\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n\n### Upgrade notes\n\n- **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) )\n- **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) )\n- **GitHub Copilot no longer reads `GITHUB_TOKEN`.** Set` COPILOT_GITHUB_TOKEN` or sign in with OAuth. ([#64697](https://github.com/anomalyco/opencode/pull/64697) )\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n- **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) )\n\n### Core\n\n#### Improvements\n\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n\n#### Bug fixes\n\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- Fixed the model picker staying empty while a slow project was still loading. ([#63814](https://github.com/anomalyco/opencode/pull/63814) )\n- 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) )\n- 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) )\n- 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) )\n- 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) )\n- Fixed `opencode service set password` writing the password to the CLI log. ([#64911](https://github.com/anomalyco/opencode/pull/64911) )\n- 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) )\n- Fixed `opencode <name>` crashing with a stack trace when`<name>` is neither a command nor a directory. It now prints help and the error. ([#65262](https://github.com/anomalyco/opencode/pull/65262) )\n- Fixed the background service becoming unresponsive at startup with a large database write-ahead log on a slow disk. ([#64532](https://github.com/anomalyco/opencode/pull/64532) )\n- Fixed 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](https://github.com/anomalyco/opencode/pull/64929) )\n- Fixed Markdown commands dropping a separate `variant` next to`model` , and agents being skipped when frontmatter repair turned inline lists or objects into strings. ([#65118](https://github.com/anomalyco/opencode/pull/65118) ,[#65119](https://github.com/anomalyco/opencode/pull/65119) )\n- Fixed Google Interactions responses stopping early when Google splits a response across requests. ([#65006](https://github.com/anomalyco/opencode/pull/65006) )\n- Fixed GPT models over OpenAI's WebSocket transport resending the whole conversation after a freeform tool call such as `execute` or`patch` . ([#64706](https://github.com/anomalyco/opencode/pull/64706) )\n- Fixed `gpt-6.2-astra` and later Astra models getting a 500k context window with ChatGPT sign-in; they stay at 272k. ([#64725](https://github.com/anomalyco/opencode/pull/64725) )\n- OpenAI `cyber_policy` and Gemini \"terms of use\" refusals are now reported as content policy errors. Thanks[@lu-zero](https://github.com/lu-zero) . ([#64844](https://github.com/anomalyco/opencode/pull/64844) ,[#64910](https://github.com/anomalyco/opencode/pull/64910) )\n- Fixed MiniMax text-to-video requests without an aspect ratio being rejected; they now default to `16:9` . ([#64822](https://github.com/anomalyco/opencode/pull/64822) )\n- Fixed 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](https://github.com/anomalyco/opencode/pull/64935) ,[#64938](https://github.com/anomalyco/opencode/pull/64938) ,[#64931](https://github.com/anomalyco/opencode/pull/64931) ,[#64933](https://github.com/anomalyco/opencode/pull/64933) ,[#64930](https://github.com/anomalyco/opencode/pull/64930) ,[#64965](https://github.com/anomalyco/opencode/pull/64965) )\n- Fixed large file views not refreshing when only the end of the file changed. ([#65114](https://github.com/anomalyco/opencode/pull/65114) )\n- Fixed the install script failing with a disk-space error when `curl` is installed through Snap. ([#65132](https://github.com/anomalyco/opencode/pull/65132) )\n\n### TUI\n\n#### Improvements\n\n- The new TUI designs are on by default, and the theme named `opencode` is the new theme. The previous default is available as`opencode-classic` , and`opencode2` keeps working as an alias of`opencode` . To go back to the previous designs, turn off**New designs** in the Experiments dialog. ([#64988](https://github.com/anomalyco/opencode/pull/64988) )\n- `/login` and`/auth` open the same dialog as`/connect` , which now lists a single**OpenCode** entry that includes OpenCode Go models. ([#65265](https://github.com/anomalyco/opencode/pull/65265) ,[#65466](https://github.com/anomalyco/opencode/pull/65466) )\n- Pressing `↓` opens the picker on the first tab with something running, the same tab that clicking the footer opens. ([#64972](https://github.com/anomalyco/opencode/pull/64972) )\n- Text prompt dialogs such as rename session, `/btw` , worktree names and connect forms end with a**Submit** button, and prompt and export dialogs have tighter spacing. ([#64944](https://github.com/anomalyco/opencode/pull/64944) )\n- The `opencode` theme's light mode uses lighter grays for the prompt box, selected tabs and hovered rows. ([#64962](https://github.com/anomalyco/opencode/pull/64962) )\n\n#### Bug fixes\n\n- Fixed connect forms built from integration fields, such as the Azure resource name, showing an empty row between the title and the input. ([#64944](https://github.com/anomalyco/opencode/pull/64944) )\n- Fixed list dialogs ending with two blank rows, and the **Manage workspaces** footer not staying at the bottom. ([#64983](https://github.com/anomalyco/opencode/pull/64983) )\n- Fixed long dialog lists replacing their last visible row with a stray `…` . ([#64934](https://github.com/anomalyco/opencode/pull/64934) )\n- Fixed the selection bar of a delete-confirmation row staying blue instead of red. ([#64936](https://github.com/anomalyco/opencode/pull/64936) )\n- Fixed file, agent and skill mentions landing on the wrong text when you restore a prompt sent from the desktop or web app that contains tabs or wide characters. ([#63989](https://github.com/anomalyco/opencode/pull/63989) )\n\n### Desktop\n\n#### Improvements\n\n- The browser pane keeps you signed in. Links from the chat open beside the conversation in one saved profile, you can import sign-ins and browsing history from Chrome, Edge, Firefox, Safari and other browsers, and you can install store extensions after reviewing what they can access. The pane gains a right-click menu, find in page, page dialogs, permission prompts, pop-up blocking and readable error pages, and the address bar completes from your history. The agent can read and drive the same signed-in tabs. ([#63002](https://github.com/anomalyco/opencode/pull/63002) ,[#65073](https://github.com/anomalyco/opencode/pull/65073) )\n- New tabs that a page opens in the browser pane appear beside the tab they came from, and middle-clicking a link opens it in a new tab. ([#65126](https://github.com/anomalyco/opencode/pull/65126) ,[#65091](https://github.com/anomalyco/opencode/pull/65091) )\n- Comments in the browser pane, file viewer and review diff can be sent to the session right away with `Mod+Enter` . Depending on your follow-up setting, they send, steer or queue. ([#65264](https://github.com/anomalyco/opencode/pull/65264) )\n- Added **Wrap code blocks** under Settings › General › Timeline, plus a**Wrap lines** button on timeline code blocks with lines too long to fit. ([#64545](https://github.com/anomalyco/opencode/pull/64545) ,[#64576](https://github.com/anomalyco/opencode/pull/64576) )\n- Added **Keep side panel open across sessions** in Settings › General. ([#64950](https://github.com/anomalyco/opencode/pull/64950) )\n- Added an **Archive session** command, bound to`Cmd+Shift+S` (`Ctrl+Shift+S` on Windows and Linux). ([#65428](https://github.com/anomalyco/opencode/pull/65428) )\n- The Home session menu has **Open** and**Open in background** , and Home shows the provider connect hint when nothing is connected. ([#65209](https://github.com/anomalyco/opencode/pull/65209) ,[#65212](https://github.com/anomalyco/opencode/pull/65212) ,[#64885](https://github.com/anomalyco/opencode/pull/64885) )\n- The Inbox layout's sidebar has a **Drafts** group for unsent new-session drafts. ([#65525](https://github.com/anomalyco/opencode/pull/65525) )\n- Conversation search (`Cmd+F` /`Ctrl+F` ) has previous and next match buttons. ([#64865](https://github.com/anomalyco/opencode/pull/64865) )\n- The connect dialog lists one **OpenCode** option that includes OpenCode Go models, Settings › Providers follows the same rule, and the free model picker has a tighter layout. ([#65466](https://github.com/anomalyco/opencode/pull/65466) ,[#65740](https://github.com/anomalyco/opencode/pull/65740) ,[#64927](https://github.com/anomalyco/opencode/pull/64927) )\n- When you reach your ChatGPT Business workspace's usage limit, a dialog explains it and offers **Copy request for admin** . ([#64926](https://github.com/anomalyco/opencode/pull/64926) )\n- Voice uses the newest GPT-Live model the server lists. ([#65506](https://github.com/anomalyco/opencode/pull/65506) )\n- Shortcuts go through the same keymap engine as the TUI, and the new **Stop session** command can be changed in Settings › Shortcuts. ([#64394](https://github.com/anomalyco/opencode/pull/64394) )\n- Shortcuts can be key chords, such as `Mod+K Mod+C` or`G I` . In Settings › Shortcuts, click**+** on a shortcut you just recorded to add another key, up to 4. While a chord is pending, a panel lists the keys that continue it. ([#64395](https://github.com/anomalyco/opencode/pull/64395) )\n- The activity pill keeps a subagent listed while work it started is still running. ([#64790](https://github.com/anomalyco/opencode/pull/64790) )\n- The goal pill has a new design with the labels Following goal, Goal paused and Goal reached. ([#60001](https://github.com/anomalyco/opencode/pull/60001) )\n- Keyboard focus shows as one consistent ring across the app, no longer appears after a mouse click, and moves to the next item when the focused one is removed. The timeline and the composer no longer draw a ring around their whole frame. ([#64909](https://github.com/anomalyco/opencode/pull/64909) ,[#64976](https://github.com/anomalyco/opencode/pull/64976) ,[#65082](https://github.com/anomalyco/opencode/pull/65082) ,[#65084](https://github.com/anomalyco/opencode/pull/65084) ,[#65100](https://github.com/anomalyco/opencode/pull/65100) ,[#65690](https://github.com/anomalyco/opencode/pull/65690) )\n- Only the latest response shows its Copy button all the time; older ones show it on hover or focus. ([#64640](https://github.com/anomalyco/opencode/pull/64640) )\n- Added experimental tab groups for side tabs under Settings › Experimental. ([#64407](https://github.com/anomalyco/opencode/pull/64407) )\n- On Windows, the taskbar button shows session status as a progress bar, a count badge for sessions that need you, and flashes when a permission or question is waiting. Notifications say what is being asked and disappear once you answer. ([#65317](https://github.com/anomalyco/opencode/pull/65317) ,[#65318](https://github.com/anomalyco/opencode/pull/65318) ,[#65319](https://github.com/anomalyco/opencode/pull/65319) ,[#65325](https://github.com/anomalyco/opencode/pull/65325) ,[#65421](https://github.com/anomalyco/opencode/pull/65421) )\n- On Windows, the jump list has **New Session** and**New Window** , you can drag files from the file tree into other apps, and**Open in** includes Windows Terminal and lists only installed apps. ([#65327](https://github.com/anomalyco/opencode/pull/65327) ,[#65330](https://github.com/anomalyco/opencode/pull/65330) ,[#65320](https://github.com/anomalyco/opencode/pull/65320) )\n- The web app can be built to run under a path prefix, for example behind a reverse proxy, with `bun --cwd packages/app build --base=/opencode/` . ([#64597](https://github.com/anomalyco/opencode/pull/64597) )\n- The background activity menu stays smooth with many subagents, and the model picker stays responsive with catalogs of thousands of models. ([#65634](https://github.com/anomalyco/opencode/pull/65634) ,[#65189](https://github.com/anomalyco/opencode/pull/65189) ,[#65635](https://github.com/anomalyco/opencode/pull/65635) )\n\n#### Bug fixes\n\n- Fixed `opencode://open-project` and`opencode://new-session` links doing nothing. ([#65332](https://github.com/anomalyco/opencode/pull/65332) )\n- Fixed file links like `~/Downloads/clip.mp4` showing \"File not found\".`~` now opens in the server's home folder. ([#65689](https://github.com/anomalyco/opencode/pull/65689) )\n- Fixed an open session's side panel tabs disappearing after you had used many other sessions. ([#65328](https://github.com/anomalyco/opencode/pull/65328) ,[#65322](https://github.com/anomalyco/opencode/pull/65322) )\n- Fixed the app freezing when opening a session on a remote server with **Share sign-ins with remote servers** on. ([#65339](https://github.com/anomalyco/opencode/pull/65339) )\n- Fixed the app freezing for several seconds when you open a group of long Code Mode scripts. An Execute row now lists its latest 10 calls, with **+N more** for the earlier ones. ([#65696](https://github.com/anomalyco/opencode/pull/65696) )\n- Fixed the browser pane showing \"The browser couldn't open\" in a project whose server had only just started. ([#65720](https://github.com/anomalyco/opencode/pull/65720) )\n- Fixed **Clear browsing data** clearing everything on the first click; it now asks first. ([#65124](https://github.com/anomalyco/opencode/pull/65124) )\n- Fixed browser tabs showing a generic globe instead of the site's icon, saved tabs appearing late after the app reopens, and the page going blank while a panel is resized on Windows. ([#65094](https://github.com/anomalyco/opencode/pull/65094) ,[#65067](https://github.com/anomalyco/opencode/pull/65067) ,[#65083](https://github.com/anomalyco/opencode/pull/65083) )\n- Fixed sites in the browser pane replacing the app's badge on the taskbar or Dock. ([#65646](https://github.com/anomalyco/opencode/pull/65646) )\n- Fixed the mouse Back and Forward buttons doing nothing. ([#65129](https://github.com/anomalyco/opencode/pull/65129) )\n- Fixed a subagent's pending permission request not reappearing after a reload or reconnect. ([#65120](https://github.com/anomalyco/opencode/pull/65120) )\n- Fixed background jobs that changed while the job list was loading showing the wrong state, and rows in the activity menu jumping around. ([#64966](https://github.com/anomalyco/opencode/pull/64966) ,[#65312](https://github.com/anomalyco/opencode/pull/65312) )\n- Fixed the session view crashing when a timeline row disappeared mid-update. ([#64565](https://github.com/anomalyco/opencode/pull/64565) )\n- Fixed earlier replies being folded into the \"Used N tools\" group when a session was woken without a new message. ([#64917](https://github.com/anomalyco/opencode/pull/64917) )\n- Fixed the Context tab showing the latest instruction update as the \"System Prompt\". ([#64991](https://github.com/anomalyco/opencode/pull/64991) )\n- Fixed the session header briefly showing the wrong worktree while a new session starts. ([#65190](https://github.com/anomalyco/opencode/pull/65190) )\n- Fixed Grep, Glob and List rows showing the parent of the folder they searched, and Windows paths not showing relative to the project. ([#65460](https://github.com/anomalyco/opencode/pull/65460) ,[#65639](https://github.com/anomalyco/opencode/pull/65639) )\n- Fixed server event streams going stale after Windows wakes from sleep, and windows reopening in the wrong place after being snapped or minimized. ([#65321](https://github.com/anomalyco/opencode/pull/65321) ,[#65323](https://github.com/anomalyco/opencode/pull/65323) )\n- Fixed the Windows caption buttons being hard to see with a contrast theme. ([#65324](https://github.com/anomalyco/opencode/pull/65324) )\n- Fixed **Open in PowerShell** on Windows opening Windows PowerShell instead of PowerShell 7 when it's installed. ([#64873](https://github.com/anomalyco/opencode/pull/64873) )\n- Fixed builds packaged without `app-update.yml` , such as AUR packages, showing update-check errors. Settings now shows**Updates unavailable** . ([#64681](https://github.com/anomalyco/opencode/pull/64681) )\n- Fixed the message menu's \"Today\" and \"Yesterday\" labels, and Home's date headers staying invisible while scrolling. ([#65081](https://github.com/anomalyco/opencode/pull/65081) ,[#64665](https://github.com/anomalyco/opencode/pull/64665) )\n- Fixed clipped or misleading focus rings, the side panel's add button being skipped by `Tab` , and the**Compacted** label only partly highlighting on hover. ([#65215](https://github.com/anomalyco/opencode/pull/65215) ,[#65192](https://github.com/anomalyco/opencode/pull/65192) ,[#65176](https://github.com/anomalyco/opencode/pull/65176) ,[#65177](https://github.com/anomalyco/opencode/pull/65177) ,[#65211](https://github.com/anomalyco/opencode/pull/65211) ,[#65213](https://github.com/anomalyco/opencode/pull/65213) ,[#65644](https://github.com/anomalyco/opencode/pull/65644) )\n- Fixed the Hex voice tip showing on phones and tablets, and a fringe on project icon corners. ([#64583](https://github.com/anomalyco/opencode/pull/64583) ,[#64582](https://github.com/anomalyco/opencode/pull/64582) )\n\n### SDK\n\n#### Improvements\n\n- Added `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](https://github.com/anomalyco/opencode/pull/64790) ,[#65266](https://github.com/anomalyco/opencode/pull/65266) ,[#64956](https://github.com/anomalyco/opencode/pull/64956) )\n- The 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](https://github.com/anomalyco/opencode/pull/65664) ,[#64546](https://github.com/anomalyco/opencode/pull/64546) )\n- The automation endpoints work without a flag, and an automation can run a shell command as its action. ([#65296](https://github.com/anomalyco/opencode/pull/65296) ,[#65186](https://github.com/anomalyco/opencode/pull/65186) )\n\n### Extensions\n\n#### Improvements\n\n- A 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](https://github.com/anomalyco/opencode/pull/64515) )\n- The `execute.before` and`execute.after` tool hooks receive`info` , the tool's definition, and`codemode` , which is true when a Code Mode script made the call. ([#64515](https://github.com/anomalyco/opencode/pull/64515) )\n- An integration's OAuth method can define `revoke` to sign a credential out remotely before it's removed. ([#64947](https://github.com/anomalyco/opencode/pull/64947) )\n- TUI plugins can read a session's running background jobs with `api.data.job.list(sessionID)` (experimental). ([#64956](https://github.com/anomalyco/opencode/pull/64956) )\n- `experimental.idle` background entries can have the kind`video` . ([#63666](https://github.com/anomalyco/opencode/pull/63666) )\n- GUI 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](https://github.com/anomalyco/opencode/pull/64577) )\n- The GUI composer API adds `composer.send(commentID)` and`composer.delivery()` , and the`Browser` contract adds`experimental.open` and`experimental.close` . ([#65264](https://github.com/anomalyco/opencode/pull/65264) ,[#63002](https://github.com/anomalyco/opencode/pull/63002) )\n- GUI `System.open` only launches HTTP, HTTPS and mail URLs, and`Browser.open` refuses`file://` URLs outside the built-in preview. ([#63002](https://github.com/anomalyco/opencode/pull/63002) )", "url": "https://wpnews.pro/news/opencode-2-4-defaults-to-stateless-mcp-and-event-automations", "canonical_source": "https://github.com/anomalyco/opencode/releases/tag/v2.4.0", "published_at": "2026-11-23 00:00:00+00:00", "updated_at": "2026-11-24 20:46:30.964619+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools"], "entities": ["OpenCode", "GitHub Copilot", "Chrome", "Edge", "Firefox", "Safari", "GitHub"], "also_reported_by": [], "takeaway": "MCP servers without a protocol setting are now probed on the newest protocol before falling back to the legacy handshake, so set protocol: \"legacy\" on any server that misbehaves.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/opencode-2-4-defaults-to-stateless-mcp-and-event-automations", "markdown": "https://wpnews.pro/news/opencode-2-4-defaults-to-stateless-mcp-and-event-automations.md", "text": "https://wpnews.pro/news/opencode-2-4-defaults-to-stateless-mcp-and-event-automations.txt", "jsonld": "https://wpnews.pro/news/opencode-2-4-defaults-to-stateless-mcp-and-event-automations.jsonld"}}