OpenCode

持续追踪核心框架、最新模型规格与重要系统接口的更新迭代轨迹。

v1.17.9

v1.17.9

Core Bugfixes Honor configured agent step limits by forcing a final text response instead of failing mid-run. Fix Devstral model detection when provider IDs use different casing. ( @Robin1987China ) Pass configured custom headers to Copilot model requests. Improvements Add high and max thinking variants for GLM-5.2 across supported providers. ( @imranshaiedi-byte ) Stop wrapping follow-up user messages in a steering reminder so prompt caching stays effective. TUI Bugfixes Only show the background subagent shortcut when the server supports it. Thank you to 4 community contributors: @Grantmartin...

v1.17.8

v1.17.8

Core Improvements Session timelines load much faster and avoid flicker or scroll jumps. Bugfixes OpenAI-compatible providers now accept MCP tool schemas that previously failed validation. ( @jquense ) Cloudflare AI Gateway now receives the configured API key correctly. ( @keefetang ) MCP tools without declared schema properties now work with providers that expect object properties. Long-running MCP tools now keep their timeout alive when they report progress. ( @Nomadcxx ) The MCP OAuth callback server now shuts down once authorization finishes or is cancelled. MCP tool failures now surface th...

v1.17.7

v1.17.7

Core Bugfixes Plugin client requests now reuse the active server instead of assuming the default local port. ACP shell tool calls now show the command and working directory from the start. Plugin-provided shell environment variables now apply to PTY sessions. Improvements MCP servers can now receive the current workspace as a client root. TUI Bugfixes MCP debug now uses the SDK's latest protocol version. Desktop Bugfixes The new session route now stays scoped to its own draft server, so prompts and state target the right workspace. SDK Improvements SDK clients now refresh model and provider av...

v1.17.5

v1.17.5

Core Improvements Added external browser OAuth for the Snowflake Cortex provider ( @santigc6 ) Improved project copy management and move-session flows in v2 Bugfixes Recovered expired MCP sessions instead of leaving MCP tools disconnected Cleared closed MCP clients so stale MCP connections do not linger Returned structured MCP tool output in a readable form Fixed duplicate renderable IDs that could break TUI rendering Fixed commands using $ARGUMENTS so file contents are not injected twice ( @verdverm ) TUI Bugfixes Added auth headers to RunCommand fetch requests ( @OpeOginni ) Desktop Improvem...

v1.17.6

v1.17.6

Core Bugfixes Improved MCP server compatibility by declaring OpenCode's supported client capabilities.

v1.17.4

v1.17.4

Core Improvements Added cwd support for local MCP servers so they can start from a workspace-relative directory. ( @Grantmartin2002 ) Added connector-based authentication flows and support for stored provider credentials. Added v2 API endpoints to create and fetch sessions, list session questions, and resolve the active location. File reads now return raw content with the correct content type for API and SDK clients. MCP server log notifications are now surfaced in opencode logs. Bugfixes Fixed Gemini tool schemas that used multi-type fields so compatible tools keep working. ( @Killusions ) Co...

v1.17.2

v1.17.2

Core Bugfixes Recover from expired remote config auth by prompting you to log in again instead of failing to load config ( @Ayushlm10 ) Let subagents use their own configured permissions again Desktop Bugfixes Restore Linux launcher and icon identity so pinned apps keep opening correctly ( @neriousy ) Restore the device attachment picker ( @rexdotsh ) Thank you to 3 community contributors: @Ayushlm10 : fix: recover from expired enterprise auth on remote config load ( #31661 ) @rexdotsh : fix(app): restore device attachment picker ( #31707 ) @neriousy : fix(desktop): restore linux launcher iden...

v1.17.1

v1.17.1

Core Improvements References can include usage descriptions for agents, show up in the new docs, and be hidden from @ autocomplete when needed. Bugfixes Deprecated reference config entries continue to load under the newer references config key. MCP prompt and resource requests now respect configured server timeouts. Anthropic fallback responses are handled correctly again. MCP servers that fail during client setup now fail cleanly instead of leaving a broken connection behind. Desktop Improvements The new desktop session flow now has a dedicated /new-session route with draft tabs that keep you...

[ 重大突破 ] v1.17.0

v1.17.0

Core Improvements Faster file search across large projects with the new fff -backed search tools. ( @dmtrKovalenko ) Added X-Session-Id headers for proxy setups that need sticky routing. ( @songchaow ) Added Cohere North model support. Added reasoning as an interleaved field option for vLLM providers. ( @delta9000 ) mcp add now works in non-interactive flows. auth logout now supports search when choosing an account. Bugfixes Improved MCP connection status messages so failures are easier to act on. Added Claude Fable reasoning support. MCP tool calls now receive abort signals, so cancellations ...

[ 重大突破 ] v1.16.2

v1.16.2

Core Bugfixes Reasoning summaries now only run on providers that support them, avoiding GPT-5 request failures on compatible backends. Edit operations now refuse loose matches that could overwrite the wrong code or replace an existing file by mistake. Fixed Bedrock sessions hanging before a model response starts. ( @alblez ) Improvements Diff viewer now supports next and previous hunk navigation. Terminal themes now refresh after live terminal reloads without stale colors or broken highlighting. Running subagents can now be sent to the background so you can keep working. Sessions now persist s...

[ 重大突破 ] v1.16.0

v1.16.0

Core Improvements Added managed workspace cloning that keeps dirty and untracked files. Added moving sessions between workspaces and directories. Added proper OpenAI model support through AWS Bedrock. Added skill discovery and file-based agent loading. Updated GitHub Copilot usage tracking for token-based billing. Added run --replay for interactive session replay. Improved startup time. ( @StarpTech ) Bugfixes Added Vue syntax highlighting. Restored full ACP session replay when loading saved sessions. ( @imnotlxy ) Fixed shell cancellation races. Fixed SAP AI Core OpenAI reasoning variants. ( ...

v1.2.25

github-v1.2.25

fix(github): enforce existing git author identity ( #30507 )

[ 重大突破 ] v1.15.13

v1.15.13

Core Bugfixes Gateway Anthropic Opus 4.7+ adaptive reasoning now keeps summarized thinking instead of returning empty thinking blocks. Improvements Sessions can now store custom metadata through the API and SDK. ( @shantur ) Config now loads from the opened location upward, so directory-specific settings and provider policies apply more predictably. TUI Bugfixes Wrapped inline tool rows now stay aligned, and failed inline tools can expand their error details in place. Thank you to 1 community contributor: @shantur : feat(core): add session metadata support ( #23068 )

[ 重大突破 ] v1.15.12

v1.15.12

Core Improvements ACP integrations can now send prompts, slash commands, and usage updates through acp-next Added WebSocket transport for OpenAI responses on supported channels (set OPENCODE_EXPERIMENTAL_WEBSOCKETS=true) Bugfixes Enabled adaptive reasoning controls for Anthropic Opus 4.7+ models Allowed colons in passwords ( @neriousy ) Sped up warm acp-next model and config switches Improved first-session acp-next startup time Kept OpenAI WebSocket response timeouts active Retried failed OpenAI WebSocket streams before falling back Handled acp-next permission prompts correctly Used the persis...

v1.2.24

github-v1.2.24: refactor(server): unify instance httpapi middleware routing

Unify declared instance HTTP API endpoints under typed middleware routing, including event streaming and PTY WebSocket connect handling.\n\nPreserve PTY connect compatibility by checking missing PTYs before parsing optional cursor and ticket query fields, with regression coverage.

[ 重大突破 ] v1.15.11

v1.15.11

Core Improvements Added headerTimeout config for provider requests, with a 10s default for default OpenAI setups. Experimental background agents now push updates without polling. You can now set only modalities.input or modalities.output in config. ( @robposch ) Remote-backed projects now resolve a stable project identity. Bugfixes Restored remote project identity resolution. Preserved cached project identity across reloads. Dynamically added MCP servers now disconnect cleanly when removed. DigitalOcean inference now uses your OAuth token directly instead of creating a MAK. ( @Spherrrical ) Co...

v1.15.10

v1.15.10

Desktop Bugfixes Restored the legacy production desktop flows for opening projects and starting sessions.

[ 重大突破 ] v1.15.9

v1.15.9

Core Improvements Redesigned the diff viewer with a file tree and refreshed layout. Bugfixes Return to the previous screen when closing the diff viewer. Show clearer errors when a default model is invalid or unavailable. Surface missing PTY session errors instead of failing generically. Improve diff viewer empty states and context handling. Show clearer errors when a skill invocation fails as expected. Show clearer errors when an installation upgrade fails. Show clearer project not found errors from the HTTP API. Return PTY error bodies from the HTTP API. Enable the diff viewer by default. Ret...

[ 重大突破 ] v1.15.7

v1.15.7

Core Improvements Added Grok OAuth sign-in, including device-code login. ( @Jaaneek ) Bugfixes V2 session APIs now return safe UnknownError responses with log reference IDs when stored messages are corrupt. Generic API 500s no longer expose config details from server errors. Unknown API errors now include reference IDs so you can match responses to server logs. V2 session APIs now return 503 ServiceUnavailableError for mutations that are not available yet. V2 session APIs now return SessionNotFoundError for missing sessions. Deduped concurrent Codex OAuth refreshes to avoid repeated refresh fa...

v1.15.6

v1.15.6

Core Improvements Added a diff viewer in the TUI for reviewing changes. Collapsed single-child directories in the diff viewer file tree. Added shell mode to the run prompt. Replaced subagent tabs with an on-demand picker in run . Plugin file load errors no longer break the rest of plugin loading. Anthropic API-key models now use the native runtime. The v2 HTTP API now exposes structured public error schemas. Bugfixes Zed editor context now only activates inside Zed terminals. The v2 HTTP API now exposes catalog errors. The v2 HTTP API now exposes request errors. The v2 OpenAPI spec now preserv...

v1.15.5

v1.15.5

Core Improvements Preview the native OpenAI runtime path behind an experimental flag Add --replay and --replay-limit to show recent history when resuming interactive runs Bugfixes Fix plugin tools using ask so tool calls complete correctly Reduce missed /event updates caused by a subscription race Sort the v2 session list by most recently updated TUI Improvements Refresh the prompt layout after pasting content Bugfixes Keep file references scoped to the current workspace Preserve pasted prompt content when copying Collapse very long tool output lines to keep the layout readable Use a higher-co...

v1.15.4

v1.15.4

Core Bugfixes Fixed project-scoped bus events so file watcher and update notifications reach the right instance. Fixed custom LSP servers not sending refresh events after they initialize. Hid background subagent task instructions unless experimental background mode is enabled. TUI Improvements Made Markdown H1 headings easier to distinguish. Thank you to 1 community contributor: @necropheus : docs: update README.es.md ( #27739 )

v1.15.3

v1.15.3

Core Bugfixes Reduced wasted work when reading very large files after output truncation. TUI Bugfixes Fixed async commands losing the active instance context, which could break agent generation and GitHub-driven runs.

v1.15.2

v1.15.2

Core Improvements Reduced unnecessary prompting around shell, task, and todo flows. Bugfixes Fixed sync events not reaching project-scoped subscribers in injected instances. TUI Improvements Newly pinned sessions now stay at the end of the pinned list instead of jumping to the top. Bugfixes Fixed opencode run --agent resolving project-local agents. Thank you to 1 community contributor: @gigamonster256 : feat(nix): add opencode-electron derivation ( #16163 )

[ 重大突破 ] v1.15.1

v1.15.1

Core Improvements Clarified how to recover when the npm package is installed without its native binary. Bugfixes Avoid duplicate consecutive entries in prompt history. Show full config validation errors during TUI startup instead of a generic failure. Fixed npm installs so the CLI can recover and fetch the right native binary on more setups. Fixed multiline @ mentions in prompts. Preserved custom tool metadata from Zod schemas. Preserved custom tool argument descriptions in generated schemas. Fixed file watching in repos where .git is a symlink. ( @kagura-agent ) TUI Improvements Added a colla...

v1.15.0

v1.15.0

Core Improvements Added an Effect-based core event system for more complete event delivery across sessions and integrations. Bugfixes Ignored invalid exports in custom tool modules instead of failing tool loading. Ignored project instruction lookup errors so sessions keep loading when project instruction discovery fails. Fixed versioned event projector lookups so event replay uses the right handlers. Desktop Improvements Auto-hide the menu bar on Linux and Windows. ( @shi-gg ) Bugfixes Fixed archived sessions being reprocessed when their archive state did not change. SDK Bugfixes Restored miss...

[ 重大突破 ] v1.14.51

v1.14.51

Core Improvements Added experimental background subagents so tasks can keep running while you continue working. Added the required billing origin header for NVIDIA endpoints. ( @nv-kasikritc ) Bugfixes Fixed worktree creation requests that omitted the POST body. Fixed sessions getting stuck with interrupted assistant messages after cancellation. Fixed repeated auto-compaction in sessions after compaction reordered messages. Updated LiteLLM compatibility to require v1.85.0-rc.2+ for current GPT-5 and tool-call behavior. ( @Sameerlite ) Fixed truncated shell output streams closing cleanly. Stopp...

v1.14.50

v1.14.50

Core Bugfixes Kept HTTP event streams open after the initial connect event so subscribers continue receiving instance updates. Returned proper busy errors when a session is already running prompt or shell work. Let invalid small_model config values fall back cleanly instead of breaking small-model selection. Improved missing-model errors with suggestions across CLI and typed callers. TUI Improvements Restored markdown rendering for session output by default. SDK Improvements Added instance.directory and instance.workspace query support to the v2 model and provider calls.

v1.14.49

v1.14.49

Core Improvements Added the v2 model and provider listing API. Added DigitalOcean OAuth and Inference Router support. ( @Spherrrical ) Create a global opencode.jsonc automatically when no config exists. Enable customize-opencode by default with a linked full schema. Autocomplete configured @mentions in prompts. Parse fenced Markdown code blocks in patch diffs by default. Bugfixes Fix keymap fallback priority and make TUI config errors clearer. Restore model suggestions for unloaded providers and missing models. Preserve layered permission rule order in config merges. ( @asuffield ) Preserve at...

v1.14.48

v1.14.48

Core Improvements Preserve original image attachments instead of resizing them before sending them to the model

v1.14.47

v1.14.47

Core Bugfixes Restored prompt editing keybindings in the TUI textarea, including aliases like esc and enter Model changes now persist reliably across session activity HTTP API schema validation errors now return a readable 400 response body Improvements Scout can now materialize configured reference repositories up front so they are ready to search Large image attachments are now auto-resized before sending, with configurable size limits TUI File and directory paths now render relative to the session directory when possible

v1.14.46

v1.14.46

Core Improvements Added a built-in customize-opencode skill so opencode config edits are less likely to break startup. Bugfixes Fixed numeric HTTP API query parameters in the generated OpenAPI spec and SDK for session and file endpoints. Fixed boolean HTTP API query handling so SDK types and runtime validation stay aligned. Tolerated legacy stored numeric values in sessions, diffs, and retry events instead of failing to load old data. Fixed old sessions with negative token counts causing message loads and Desktop startup to fail. Fixed MCP tool discovery when a server publishes broken outputSc...

[ 重大突破 ] v1.14.42

v1.14.42

Core Improvements Added HTTP API response compression for large non-streaming responses. Added the Scout agent for repo research, docs lookup, and dependency-source inspection. Added workspace sync so adapter-backed workspaces can be discovered and registered automatically. Added an interactive split-footer mode for opencode run . Simplified TUI keybinding config into a flat keybind format. Made duplicate worktree names fall back to the parent directory for clearer labels. Bugfixes Fixed HTTP API auth responses to match the previous wire format for empty authorize results and share errors. Ret...

v1.14.43

v1.14.43

Core Bugfixes Keep provider and config API responses working when auth loaders add non-JSON options to providers. Include tool image attachments in ACP updates and session replays. ( @SteffenDE ) Thank you to 1 community contributor: @SteffenDE : fix(acp): include tool image attachments in updates ( #25128 )

v1.14.44

v1.14.44

Core Bugfixes Fixed upgrades failing for existing workspaces when adding the time_used field.

v1.14.45

v1.14.45

Core Bugfixes Provider configs and API responses now accept models marked as active . Read tool permission rules now match worktree-relative paths, so read allowlists and denylists apply correctly. Workspace-routed HTTP API endpoints no longer reject valid directory and workspace query params. TUI Bugfixes Startup errors now report every failed bootstrap request instead of only the first one. Opening a session no longer crashes when the messages request fails. Desktop Bugfixes Older migrated sessions with missing diff file details load again. Older migrated sessions with missing diff patches l...

v1.14.41

v1.14.41

Core Bugfixes Restored formatter output handling so formatting still works when formatters write to stdout or stderr. ( @ferdinandyb ) Improvements Warping a session to another workspace can now carry over your uncommitted file changes. TUI Bugfixes Restored custom provider setup in /connect . Desktop Bugfixes Added a macOS Settings menu entry. ( @jessedi0n ) Improvements Moved the desktop app's local server into a separate utility process for more reliable startup and shutdown. Extensions Improvements ACP clients now restore the last model, mode, and effort when loading sessions, and can clos...

[ 重大突破 ] v1.14.40

v1.14.40

Core Improvements Support .well-known/opencode configs that point to a separate remote config file. Bugfixes Preserve assistant text when replaying signed reasoning blocks. ( @edevil ) Return consistent not-found errors for missing sessions. Apply CORS headers before auth so browser clients can reach legacy server endpoints. Fix serve , web , and ACP network options triggering runtime re-entry errors. Only show connected workspaces in warp flows, and carry the new directory into the session after warping. Restore web terminal CSP allowances. Sanitize invalid surrogate characters before provide...

v1.14.37

v1.14.37

Core Bugfixes Canceling a task now also cancels child subtask sessions. Improvements Improved v2 session rendering with cleaner tool states, better compaction summaries, and more accurate timing. Warp a session into another workspace or back to the local project. Desktop Bugfixes Run the desktop migration on startup so existing installs transition correctly after the desktop packaging move. Stabilized the Windows titlebar when changing zoom levels.

v1.14.38

v1.14.38

Core Bugfixes Embedded UI requests now work with arbitrary connect-src origins under the default CSP. Desktop Bugfixes Desktop now trusts system CA certificates for HTTPS connections.

v1.14.39

v1.14.39

Desktop Bugfixes Respect HTTP_PROXY and related proxy environment variables in the desktop app. Return null instead of failing when the desktop app cannot read a stored value.

v1.14.35

v1.14.35

Core Bugfixes Preserve diff patch boundaries so session diffs keep rendering correctly when file contents include diff --git text.

v1.14.34

v1.14.34

Core Improvements Add PTY connection tickets so authenticated terminal websockets work more reliably across clients. Add v2 session failure events so clients can detect and show failed runs. Improve shell command handling for Bash, PowerShell, and cmd sessions. Bugfixes Return structured error bodies from the effect HTTP server instead of empty failures. Reload server auth environment variables correctly for each new HTTP listener. Stop worktree creation from hanging while bootstrap commands run. Fix Azure Anthropic model resolution when using the Anthropic SDK. Fix the web UI proxy so public ...

[ 重大突破 ] v1.14.32

v1.14.32

Core Shell mode in the prompt stays editable, so backspace, cursor movement, and other editing keys work again. Fixed HTTP API workspace adapters losing instance context, which could break workspace create, sync, and routing flows. Fixed experimental workspace creation requests that omit extra . Fixed OpenAPI parameter schemas so generated clients match the public API. Unsupported image formats now fall back to text reads instead of being sent as image attachments. ( @zeke ) Agents can use the global temp directory without extra permission prompts. Fixed Bedrock sessions that include reasoning...

v1.14.33

v1.14.33

Core Fix issue with custom agents in plugins not loading Thank you to 3 community contributors: @jerome-benoit : fix(nix): remove stale packages/shared filter ( #24930 ) @OpeOginni : docs: CLI docs for current commands and flags ( #25399 ) @HyeokjaeLee : fix(instance): restore InstanceBootstrap init parameter for non-Effec… ( #25449 )

v1.14.31

v1.14.31

Core Azure setup now prompts for the resource name when needed and saves it with the API key. Task child sessions now preserve parent external_dir and deny permissions. ( @remorses ) Invalid remote MCP URLs now fail with a clear error instead of breaking setup. Desktop Restoring saved messages no longer crashes the app when a model is missing. Thank you to 1 community contributor: @remorses : fix(opencode): preserve external_dir and deny parent permissions in task child sessions ( #23290 )

[ 重大突破 ] v1.14.30

v1.14.30

Core Fixed missing sessions in Desktop caused by path mismatches, including recovery for existing stored data. Fixed Azure Responses defaults to avoid reasoning item ordering errors. Improved DeepSeek compatibility with providers that vary model naming. Added Mistral Medium 3.5 with reasoning support. ( @rubdos ) Made instruction precedence more predictable by applying global instructions before project and skill instructions. Reconnected editor context when switching to a session in another directory. Fixed forked sessions so compacted history stays intact. ( @spark4862 ) Reduced memory growt...