On this page
On November 23, 2026, Anomaly released OpenCode v2.4.0 followed the same day by point release v2.4.1 (which fixes assistant message persistence on macOS 12's older SQLite and restores @opencode/plugin compatibility back to OpenTUI 0.8.0). Building on earlier 2.x milestones (see our OpenCode 2.2.7 coverage), v2.4.0 adds major desktop browser and automation capabilities alongside several breaking changes for direct SDK consumers and headless scripts.
Who Should Upgrade: Four Core Additions in v2.4.0
**Built-In Desktop Browser: **Imports sign-ins and browsing history from Chrome, Edge, Firefox, or Safari, and supports Chromium extensions or installs from the Chrome and Edge stores. Everything stays in one persistent desktop profile so chat links open authenticated, tabs survive restarts, and agents can read and drive pages without switching apps (review the Share sign-ins with remote servers toggle before connecting remote hosts).
Automations: **Lets agents run prompts, Code Mode scripts, or shell commands on a timer, cron schedule, or incoming MCP Server event (MCP Events beta push delivery), managed via **/automation. Shell actions prompt once on creation and log exit codes and output; set "automations": false in config to disable.
Background Video Generation (generate_video) & Claude Web Search: **When a connected provider exposes a video model, agents can call **generate_video in the background (jobs survive server restarts and save outputs into the workspace, while internal data blobs expire after one week). Teams with Claude Agent connected can also set "websearch": {"provider": "claude-agent"} to search without a separate search API key.
**New TUI Theme & Windows Taskbar Status: **Enables the refreshed TUI theme by default and adds progress bars, attention counters, and permission-prompt flashing to the Windows taskbar button.
Where Existing Scripts Break: SDK & Configuration Breaking Changes
When upgrading scripts or plugins to v2.4.0+, audit six breaking changes:
Direct @opencode/ai ImageResponse Field Removal: **Following the removal of **ImageResponse.image in the 2.2.7+ SDK lineage, code importing @opencode/ai directly must read response.images[0] instead of response.image to avoid runtime undefined property errors.
Image Tool Renamed to generate_image: **The built-in experimental_image_generate tool is now **generate_image. Existing config permission rules map automatically, but saved "always allow" session approvals reset and prompt once.
Asynchronous Plugin Loading Restored on SDK Endpoints: **v2.4.0 removes the 5-second blocking wait on model, provider, generate (image/video), voice, and websearch.query endpoints at startup. Immediately after boot, these endpoints return whatever has loaded so far (potentially empty). Long-lived clients should refresh on **updated events (such as model.updated), while one-shot scripts must poll plugin.list until plugins finish loading.
Code Mode Session Tool Paths Moved: **tools.opencode.session_rename and tools.opencode.session_move moved to **tools.opencode.session.rename and tools.opencode.session.move.
GitHub Copilot Token Environment Variable: **OpenCode no longer reads GITHUB_TOKEN; set **COPILOT_GITHUB_TOKEN or authenticate via OAuth.
Server Version Alignment & Plugin Compatibility: **Desktop voice requires a matching v2.4.0+ server, and teams using OpenTUI 0.8.x plugins should install **v2.4.1 directly to avoid the strict OpenTUI 0.9.4 floor introduced in v2.4.0.

Image source: Architecture and migration summary created by DigIntoAI based on the OpenCode v2.4.0 and v2.4.1 changelogs.
How to Verify and Roll Back Safely
Post-Upgrade Verification: **Verify matching client and server versions via **opencode --version, update any direct @opencode/ai callers to read response.images[0], add a plugin.list readiness poll to one-shot scripts, and test sign-in persistence inside the Built-In Desktop Browser.
Theme, Storage, and Package Rollback: **Select **opencode-classic in Theme to restore the previous TUI palette. If custom local database readers break on the new per-row assistant storage layout, set "experimental": {"part_rows": false} for this release, or pin back to the prior CLI release with npm install -g @opencode/cli@2.3.2.
