Release

OpenCode in early December: plugin HTTP hook responses, pop-out settings, and session deep links

This week's digest covers v2.4.4: plugin HTTP hook responses, pop-out settings with a swatch theme picker, and jump-to-session deep links.

This digest closes out one tagged OpenCode release: v2.4.4 (December 3), the first weekly digest after the v2.4.3 write-up. Everything below is from that release: plugins answering model HTTP requests from hooks, pop-out Settings with a swatch theme picker, jump-to-session deep links, and fix batches across Core, the TUI, Desktop, and extensions.

Answer model HTTP requests from plugins

Plugins using the session.http.request hook can now set event.response to answer model HTTP requests directly, making custom gateways, mocks, and request interception straightforward (improvement). Thanks @nv-nedelman-1.

Pop-out settings and a swatch theme picker

Settings can pop out into their own window with live cross-window sync, and themes are browsed in a searchable popover with 5-color swatches and live preview (improvement). Desktop also adds the ability to hide any server across tabs, inbox, and notifications (improvement).

Paste a session ID into the Command Palette in Desktop or TUI to jump straight to any session across servers, or open sessions directly via opencode://session/<id> deep links (improvement). Desktop adds unified cross-server Command Palette search with instant session-ID lookup, a Regenerate title action, a “Full session” option at the top of /fork, and Close on pinned tab context menus (improvements). In the TUI, session navigation by ID is added in the Command Palette and Session List (improvement). Thanks @gsimone.

How to use

More improvements in this release

Each model’s recommended API from models.dev is enabled by default and the recommended_api flag is removed (improvement). experimental.tool.auto and experimental.permission.save managed policy actions are added, with required prompts for unparseable shell commands when shell deny policies are active (improvement). OpenRouter models are filtered using account preferences, and Sign in with ChatGPT models and speeds load from the account’s model list (improvements). The default header timeout for Gemini and DeepSeek models increases to 10 minutes, and OAuth tokens are revoked when removing GitLab, xAI, and DigitalOcean sign-ins (improvements).

Long shell output keeps both its start and end when truncated, the shell result field outputPath is renamed to fullOutputPath, and saved shell output is no longer deleted when old commands are evicted (improvements). Versioned MCP skills run without asking by default and attached MCP clients are included in MCP instructions (improvements). opencode machine update is added for remote worker updates, with tighter workspace sandbox confinement and per-OS path case-sensitivity (improvements). The bundled ripgrep updates to 15.2.0, and the experimental Blob API adds SHA-256 content deduplication (improvements). Experimental mcp_resilience and Code Mode durability and multi-turn worker improvements are added behind feature flags (improvements).

In the TUI, metadata.required approval policies are respected in autoaccept mode and opencode run --auto (improvements).

In the desktop app:

Fixes in this release

Core: assistant message token counts stay accurate to context size across Anthropic fallback and compaction turns while preserving billed cost accuracy (bugfixes); in-flight MCP tool calls aborted when a concurrent request triggers a session-expiry reconnect are retried (bugfix); retry hooks can handle content-filter finishes and sensitive_words_detected responses are classified as content-policy errors (bugfixes). Thanks @gsimone; Claude usage limit reset times are displayed in local time (bugfix); whole-file writes are serialized with concurrent edits, permission denial reasons are preserved through tool error wrappers, and tool errors replaced by execute.after hooks are normalized (bugfixes); archived sessions are no longer auto-unarchived when sending prompts, commands, skills, or shell calls, and parent wakes are recovered after subagent reports (bugfixes); loopback URL detection is fixed for localhost., unbracketed ::1, and non-IPv4 127.* hostnames, piped stdin waits are canceled on abort in opencode run, and blob: media is allowed in the Web UI CSP (bugfixes). Thanks @AdemGhalleb and @richard-fairthorne.

In the TUI: textarea keybindings reload live when config changes, without restarting the TUI (bugfix). Thanks @OpeOginni.

In the desktop app:

In extensions: VS Code line selection ranges are fixed so selections ending at column 0 of the next line do not include that trailing line (bugfix).

For the full list of changes, see the v2.4.4 release notes, and follow the release feed for the next tag.

溯源: https://github.com/anomalyco/opencode/releases

继续探索