页面简介
Release notes for every OpenCode version, with the new features, improvements and fixes in the desktop app, terminal UI, mobile app and SDK.
正文摘录
ChangelogNew updates and improvements to OpenCodeSubscribeRSS feed (opens in a new tab)Watch releases on GitHub (opens in a new tab)Follow @opencode on X (opens in a new tab)Custom Model Responses in HTTP HooksPlugins 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.#67635Pop-Out Settings and Swatch Theme PickerPop Settings into its own window with live cross-window sync, and browse themes in a searchable popover with 5-color swatches and live preview.#67759#67752Jump to Sessions by ID and Deep LinksPaste 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.#67779#64180Improvements 1414 more improvementsFixes 1212 more fixesAutomations in DesktopOpen Automations from the sidebar or Home to view scheduled and event-driven automations across your servers, see which session each one wakes, and pause, resume, or delete them.#66393#6689911 New Themes and Contrast CalibrationDesktop adds Modus, Alabaster, VS Code, Cyberdream, Poimandres, Oxocarbon, Sakura, Espresso, Witch Hazel, E-Ink, and Dune, and calibrates all 35 existing non-default themes for WCAG 2.2 contrast.#66521#66528#66531OpenMono Default FontCode blocks and the built-in terminal in Desktop now use OpenMono with bundled Nerd Font icons by default. Existing custom font settings stay unchanged.#64797Improvements 1616 more improvementsFixes 1414 more fixesGPT-6.2 System PromptGPT-6.2 Sol and Astra, and the gpt-latest aliases, use a system prompt written for GPT-6.2.#66297OpenCode Go Onboarding FixAfter you connect OpenCode, the model picker lists OpenCode Go first.#66363Esc Takes Back Your Last MessageIf the composer is empty, stopping a response with Esc before the model has written anything or called a tool removes your message and puts it back in the composer, images included, so you can edit it and send again.#65505Improvements 2222 more improvementsFixes 1919 more fixesmacOS 12 Session FixOpenCode can save assistant messages again on the older SQLite version included with macOS 12.#65771Config-Only Providers Show Their ModelsProviders you set up only in your config, such as Ollama, now show their models in /models without a /connect login.#65793Unread /btw AnswersWhen a side question finishes behind another side-panel tab, its tab shows an unread dot until you open it.#65821ImprovementsCore, Terminal, DesktopWith experimental.model_speeds enabled, model service tiers are exposed as remembered speeds instead of separate model-picker entries.#65749DesktopLayout choices in Settings now use consistent navigation-card previews and accent styling.#65757#65800ExtensionsEffect and Promise plugins can create, list and delete automations through ctx.experimental.automation.{create,list,delete}.#65747Extensions@opencode/plugin now supports @opentui/core and @opentui/solid from version 0.8.0, allowing plugins capped below OpenTUI 0.9 to install again.#65819FixesCoreFixed compaction retaining more recent history than keep.tokens, including when a single newest message already exceeds the allowance.#65768CoreFixed occasional extra cache cost in long goal sessions after a compaction.#65788DesktopFixed the timeline, Home list, file viewers and tool output adding invisible or oversized stops to keyboard Tab navigation. They remain focusable by clicking for keyboard scrolling.#65758#65785DesktopFixed unwanted focus rings around clicked Settings pages, error details, What’s New and the terminal, and corrected the split button’s focus-ring corners.#65783#65785DesktopFixed folder paths showing middle-truncation markers unnecessarily at fractional UI zoom levels.#65225SDKAn aborted shared event subscription now stops immediately even when the source has already completed or failed with buffered events remaining. Thanks @chirag127.#65441Built-In Desktop BrowserImport 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#65073AutomationsAsk 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#65186Generate VideosWhen 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#65664New TUI LookThe 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.#64988Windows Taskbar StatusOn Windows, the taskbar button shows session progress, counts sessions that need you and flashes when a permission or question is waiting.#65317#65318#65319Improvements 5858 more improvementsFixes 5757 more fixesGPT-6.2 Prompt CachingGPT-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#64544FixesCorewebfetch structured output no longer repeats the url and format it was called with.#64534Timed-Out Shell Commands Keep RunningA shell command still running when its timeout expires now moves to the background instead of being killed, so long builds and test runs finish and report back. A foreground timeout: 0 now means the default 120 seconds.#63699Compaction Without the WaitAs a session nears automatic compaction, the summary is now written in the background, so your next prompt doesn't pause for it. Set compaction.background: false to turn it off; a background summary that ends up unused still costs tokens.#64290GPT 6.2 with ChatGPT Sign-InGPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT.#64508Update Plugins from SettingsOpen Settings › Extensions, click Check for updates, then Update on any plugin with a new version.#64511Comment on Selected CodeSelecting code in diff and file viewers now just selects it, so you can copy it, and an Add comment toolbar appears beside the selection.#64410Improvements 3333 more improvementsFixes 3636 more fixesOpenCode 1 now offers the upgrade to OpenCode 2.0OpenCode 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.FixesCoreSessions 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.CoreA provider error for a request body that is too large now starts compaction and a retry instead of failing the turn.Background Subagents by DefaultSubagents now return immediately, continue in the background, and report back whenever they become idle. You can keep working in the parent session while multiple subagents run concurrently.#63382Quieter Transcripts by DefaultThe TUI now summarizes each run of tool calls and thoughts into one collapsible activity row, so the answer is easier to follow. To see every step again, set Verbosity to medium or high in settings, or set session.verbosity in your TUI config; an existing setting is kept.#63207Jump to an Earlier PromptIn the desktop app, open Jump to message from the command palette or press Cmd+Alt+G (Ctrl+Alt+G on Windows and Linux) to search prompts across the current session and jump directly to one.#63585Improvements 3232 more improvementsFixes 3434 more fixesGitHub Copilot AutoPick Auto in the model picker when your Copilot account has an Auto pool, and Copilot's router chooses the model for each session at the Auto discount. If routing fails, OpenCode falls back to the account's default chat model.#62997Side Panel Tab ShortcutsRight-click a side panel tab and choose Close tabs to the right. ⌘W now closes side panel tabs wherever focus is, ⌥⌘W or Ctrl+Alt+W always closes the session tab, and ⌘⇧T reopens the last closed tab of either kind where it was.#62922Mark Sessions Read or UnreadOpen the menu on a tab, Home row, project row or inbox card and choose Mark as unread to keep its dot until you next visit.#62889Breaking changes@opencode/ai: ImageResponse.image is removedThis affects code that imports @opencode/ai directly. Read response.images[0] instead of response.image.#63011SDK: fewer endpoints wait for plugins to loadOn a Location that is still loading plugins, agent.list returns the agents loaded so far, and integration.list, usage.limits, vcs.init, rpc.call and artifact.* no longer wait up to 5 seconds. Entries and actions that a plugin provides appear when it finishes loading, so refresh on the matching *.updated event. Model, provider, generate.*, voice.* and websearch.query endpoints still wait.#62796#63040Improvements 1313 more improvementsFixes 3434 more fixes