OpenCode

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

v2.3.2

v2.3.2

Highlights GPT-6.2 Prompt Caching : GPT-6.2 models don't cache a system prompt sent in the Responses instructions field, so every step re-billed it as uncached input. OpenCode now sends it as a leading developer message on every Responses route, including OpenAI (API key and ChatGPT sign-in), GitHub Copilot, Zen, Azure and OpenRouter, so it is cached from the second step on. ( #64542 , #64544 ) Core Bug fixes Fixed GPT-6.2 models re-billing the system prompt as uncached input on every step. On GitHub Copilot gpt-6.2-sol , uncached input per step dropped from about 14,000 tokens to 3. Compactio...

v1.19.6

v1.19.6

Desktop Improvements OpenCode 1 now offers the upgrade to OpenCode 2.0. OpenCode 2 downloads in the background and installs only when you choose: Restart to upgrade, Upgrade on quit, or Later. Your sessions, projects, and settings are kept. Plugins made for OpenCode 1 need an update. Core Bugfixes Sessions with many images no longer send oversized requests. When the images in a session's history pass 25 MiB, the oldest are replaced with a placeholder. A provider error for a request body that is too large now starts compaction and a retry instead of failing the turn.

v0.6.0

process-daemon-v0.6.0

fix(process-daemon): reap shell commands at exit (protocol 9, release…

v0.5.2

process-daemon v0.5.2

opencode-pty 0.5.2 (protocol 8) from packages/process-daemon, published to npm as @opencode/pty@0.5.2.

v0.3.3

process-daemon v0.3.3

opencode-pty 0.3.3 (protocol 7) from packages/process-daemon, published to npm as @opencode/pty@0.3.3.

v0.4.0

process-daemon v0.4.0

opencode-pty 0.4.0 (protocol 7) from packages/process-daemon, published to npm as @opencode/pty@0.4.0.

v2.2.1

v2.2.1

Highlights Keep Working Toward a Goal : Run /goal <objective> in the TUI or Desktop to let the session continue until a reviewer confirms the objective is met. Use /goal pause , /goal resume , or /goal clear to control it. ( #59437 ) Generate Images : Enable experimental.image_generate to let agents create or edit images with the new image_generate tool. You can optionally set its default model with experimental.image_generate.model . ( #59939 , #60096 ) Inspect Background Shells : Click a running shell in the Desktop activity pill to see its live output and stop it without leaving the m...

[ 重大突破 ]v2.2.2

v2.2.2

Highlights Image Generation by Default : When a connected provider supports image models, agents can now use experimental_image_generate without additional configuration. Set its preferred model through experimental.image_generate.model . ( #60258 ) Faster Worktree Selection : On the new-session screen, click the current Git branch to open that project’s “Run session in” worktree picker directly. ( #60263 ) Unified Quotes and Annotations : Timeline quotes, terminal quotes, and browser annotations now share a compact optional-comment editor, while source highlights remain attached to local draf...

v2.2.3

v2.2.3

Highlights Use Claude Code in OpenCode : Install Claude Code, run claude auth login , then select Claude Agent in /connect to use your Claude Code login and models. ( #58782 ) Faster Long Sessions in Desktop : Streaming replies and long conversations now do much less rendering work. ( #60489 , #60521 , #60513 , #60481 ) Desktop Stability Fixes : Fixes side-panel tabs, repeated "Session not found" toasts, and Open file over HTTP. ( #60430 , #60436 , #60459 , #60462 ) Breaking changes TUI plugins require OpenTUI 0.8 @opencode/plugin now requires @opentui/core and @opentui/solid 0.8.0 or later. I...

v2.2.4

v2.2.4

Highlights Persistent Desktop Terminals : Desktop terminals now belong to the session, survive server restarts with their scrollback, and stay synchronized with the TUI and other windows. Renamed terminals also keep their names across restarts. ( #60346 ) Publish Interactive Artifacts : Enable "experimental": { "artifacts": true } in opencode.json to let agents publish, update, and serve HTML or static artifacts through the built-in local provider or plugin-provided storage. ( #60351 ) Guided Claude Agent Setup : Select Claude Agent from the provider picker to copy claude auth login , install ...

[ 重大突破 ]v2.2.5

v2.2.5

Highlights Worktree and Shell Mode Shortcuts : Press ⌘⌥O on macOS or Ctrl+Alt+O on Windows and Linux to choose a worktree, and ⌘⌥B or Ctrl+Alt+B to choose its base branch. ⌘⇧X or Ctrl+Shift+X now toggles shell mode in the composer. ( #60713 ) Send Quotes From the Comment Popup : Hold ⌘ or Ctrl in the quote popup to turn its checkmark into send, or press ⌘Enter or Ctrl+Enter , to send just that quote and comment while leaving the rest of the composer untouched. ( #60640 ) Percentage Compaction Buffer : Set "compaction": { "buffer": "20%" } in opencode.json to keep a share of each model's contex...

v0.5.0

process-daemon v0.5.0

opencode-pty 0.5.0 (protocol 8) from packages/process-daemon, published to npm as @opencode/pty@0.5.0.

v2.2.6

v2.2.6

Highlights Shared MCP Connections : Turn on pooling for an MCP server to share one connection across projects with the same setup, so you run fewer processes and start faster. ( #61185 ) GUI Plugin Themes and New Slots : GUI plugins can now add color themes, render or add actions to code blocks, and use native settings and menu components. ( #61485 , #61533 , #61527 , #61509 ) Mobile Composer Dock : On phones and tablets, composer actions now sit in a touch dock above the keyboard with larger buttons. ( #61773 ) Scripted Runs in Worktrees : Run opencode run -w to start the session in a new git...

v1.19.5

v1.19.5

ci: replace OpenCode app token on v1 with GITHUB_TOKEN ( #59808 )

[ 重大突破 ]v2.2.0

v2.2.0

Highlights Create, install and share Desktop plugins (experimental) ( #55246 , #59469 , #59489 ) Refreshed the desktop app experience ( #56898 , #58865 , #55838 , #57962 ) Add experimental image and decision generation APIs to plugins and sdk, allowing image generation or decision model (think typesafe, clef, etc) workflows. ( #59190 , #59380 , #58758 ) Plugins can now attach and update keyed session instructions with ctx.session.instructions.entry.put/list/remove. Instead of editing the system prompt and busting the prompt cache, each change is added as a small update at the next step. The en...

v1.2.28

github-v1.2.28: chore(github): pin actions/cache to commit SHA in GitHub Action (#58769)

Co-authored-by: rekram1-node rekram1-node@users.noreply.github.com

v1.19.4

v1.19.4

Core Improvements Upgraded the bundled Bun runtime to 1.4.4, which includes security fixes for Brotli, TLS, HTTP/1.1, HTTP/2, HTTP/3, WebSocket, and fetch , and updates root certificates to NSS 3.131.1.

v1.2.27

github-v1.2.27

chore(function): remove exchange_github_app_token_with_pat route ( #57 …

[ 重大突破 ]v1.19.3

v1.19.3

Core Improvements Configure model reasoning options to generate reasoning variants, replacing catalog variants while preserving your configured variant overrides.

v1.19.2

v1.19.2

Core Bugfixes OpenCode 1 now stays on the 1.x release line: update checks use only the npm opencode-ai latest version, so 1.x installs are never offered a 2.x build as a regular update. Upgrading to OpenCode 2 remains a separate, explicit choice through the 2.0 offer in /update or opencode upgrade --major . Fix upgrades for installs managed by yarn. Skip 1.x updates for Homebrew Core installs, which now track OpenCode 2, and check tap and Chocolatey availability before offering an update. The install script refuses to install 2.x versions.

v1.19.1

v1.19.1

Core Bugfixes Session sharing has been discontinued. Existing share links and session-sharing commands are no longer available, and importing sessions from share URLs is unsupported.

v1.0.0

vscode-v1.0.0: fix(vscode): launch the V2 CLI without --port (#49084)

Co-authored-by: uyencss uyencss@users.noreply.github.com Co-authored-by: Aiden Cline aidenpcline@gmail.com

v1.19.0

v1.19.0

Core Improvements Run opencode upgrade --major to upgrade to OpenCode 2. Bugfixes Allow the OpenAI ultrafast service tier. Validate PTY connection origins and tickets before checking whether a PTY exists. TUI Improvements Use /update to install OpenCode updates or upgrade to OpenCode 2; updates are no longer installed automatically. Thank you to 1 community contributor: @dc85 : docs(web): add Exo Free to Zen docs ( #53622 ) fix(stats): attribute exo usage to an unknown provider ( #53621 ) docs(web): remove Fledge Alpha Free from Zen docs ( #53984 )

v1.2.26

github-v1.2.26: chore: promote v2 to dev

Takes the v2 tree, with packages/console, packages/web, packages/stats, packages/function, infra and sst.config.ts merged up to latest dev, and retargets V2 publishing and deploys from the v2 branch to dev.

v1.18.35

v1.18.35

Core Improvements Added canonical redirects and JSON and Markdown data formats for agent-readable stats. Bugfixes xAI tool results now include supported images, while unsupported image formats are skipped. ( @Jaaneek ) Thank you to 3 community contributors: @dc85 : docs(web): add Fledge Alpha Free to Zen docs ( #52895 ) @jm0ney337 : docs(ecosystem): add opencode-supabase to ecosystem plugins ( #49848 ) @Jaaneek : fix(opencode): bump @ai-sdk/xai to 3.0.139 so tool-result images reach xAI ( #53549 )

v1.18.34

v1.18.34

Core Bugfixes Send namespaced session and parent-session identity headers with model requests. Re-sign locally compiled macOS binaries so they run reliably on macOS 27+. ( @ryangamerdev ) Sign macOS CLI release binaries with a Developer ID. Thank you to 3 community contributors: @dc85 : docs(web): correct GPT 6.1 Sol cache pricing ( #52176 ) @metal-huang : fix(tui): use path.sep for plugin name extraction in /status dialog ( #52328 ) @ryangamerdev : fix(opencode): ad-hoc re-sign darwin binaries after local compile ( #52183 )