页面简介
Import your sign-ins and browsing history from Chrome, Edge, Firefox or Safari, and add extensions from Chromium browsers or the Chrome and Edge stores.…
正文摘录
Built-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#65319ImprovementsUpgrade notesImage tool renamed. experimental_image_generate is now generate_image. Permission rules with the old name are mapped automatically, but saved "always allow" approvals are not, so it asks again once.#65682Upgrade notes, CorePlugins that follow a version now update on their own. A plugin written as name@latest, a version range (such as name@^1.2.0), a Git branch or a Git semver: range is checked on startup and every 24 hours, and a newer match is installed and reloaded. Ranges never leave their range, and if a new version fails to load the previous one keeps running. A bare name, an exact version, another tag such as @next, a Git tag or a commit hash doesn't update itself; opencode plugin update still updates those by hand.#64764#65052#65056Upgrade notesGitHub Copilot no longer reads `GITHUB_TOKEN`. Set COPILOT_GITHUB_TOKEN or sign in with OAuth.#64697Upgrade notes, CoreMCP servers are tried on the newest protocol first. A server without a protocol setting is probed before falling back to the legacy handshake. Set protocol: "legacy" on a server that misbehaves.#65282Upgrade notesOpenCode Go connects through OpenCode. The connect dialogs and opencode auth login list one OpenCode option that includes Go models. OpenCode Go is only listed when a Go key is already saved, and saved keys keep working.#65466Upgrade notesNew desktop shortcut. Cmd+Shift+S (Ctrl+Shift+S on Windows and Linux) now archives the open session. The composer's Cmd+U and Escape/Ctrl+G now follow the Attach file and Stop session shortcuts.#65428#64394Upgrade notesCode Mode session tool paths moved. tools.opencode.session_rename and session_move are now tools.opencode.session.rename and .move. Direct tool names and permission actions are unchanged.#65080Upgrade notesTUI plugins need OpenTUI 0.9.4. @opencode/plugin requires @opentui/core and @opentui/solid 0.9.4 or later. Renderers passed to registerCodeBlockRenderer now receive an OpenTUI block (block.text) instead of a Markdown token; codeBlockStyle and escaped are gone.#63989Upgrade notesSDK: plugins load in the background again. Plugins are meant to load asynchronously, and the server never waits for them. In v2.2.7 the model, provider, generate.*, voice.* and websearch.query endpoints started waiting up to 5 seconds for plugins and returning 503 after that; this release removes that wait. Right after startup these endpoints answer with whatever has loaded, so a list can be empty or partial. Long-lived clients should refresh on the matching *.updated event, such as model.updated. One-shot scripts should wait on their side, for example by polling plugin.list until it returns plugins, or the endpoint until the entry they need appears.#63040#63814Upgrade notes, DesktopDesktop voice needs a matching server. The app reads each voice model's engine, which older servers don't report, so voice shows as unavailable against a server from before this release.#65506Upgrade notes, CoreStorage write path. Assistant parts are now saved as their own rows. experimental.part_rows: false restores the old path for this release.#65039CoreAdded automations. Agents can schedule prompts, Code Mode scripts or fixed shell commands to run once, on an interval, on a cron schedule or when a connected MCP server pushes an event. Use the /automation command or the automation tools. A shell action asks for approval once, when it's created, and records each run's exit code and output. Set "automations": false to turn them off.#65296#65186#65217#65236#65001#65699CoreMCP Events shipped: OpenCode follows the MCP Events beta for push delivery, with argument checks, heartbeats and automatic reconnects. An event too large for its prompt is skipped and its automation keeps running.#65271#65673CoreAgents can generate videos with generate_video whenever a connected provider has a video model. The job runs in the background, survives a server restart, saves the finished videos into the workspace and wakes the agent with their paths. Set a default model with experimental.video_generate.model. The image tool is now called generate_image.#63666#64546#65664#65682CoreThe Claude Agent provider has a configDir setting for a Claude config folder other than the default. Given a list of folders, a chat moves to the next account when one hits its usage limit. Claude Agent sessions also show up in Claude Code as coming from opencode.#62514#65035#65016Core, ExtensionsRemoving a Sign in with ChatGPT account, with opencode auth logout or the remove button in the app, now also revokes it with OpenAI.#64947CoreThe ChatGPT plan model lists now come from models.dev, so new models show up without an OpenCode update.#65579CoreVoice models are now listed from models.dev, adding newer OpenAI models such as gpt-live-1.1.#65491CoreReading far into a large file with read, or reading its tail, takes far fewer reads, which is much faster on remote workspaces.#65611CoreThe shell tool's result says why a command ended without an exit code, and lists its output after the smaller fields so they survive truncation.#65365#65513CoreCode Mode scripts can define getters and setters, errors have a stack showing where they were thrown, and a failed import says why.#64908#64939#64587CoreA timeout set on a provider now applies to every request, including image, video, speech, transcription, embedding and compaction requests, which previously could hang forever on a stalled provider.#64692CoreGemma 4 models on Google's Interactions API offer the none and thinking variants, and the provider's safetySettings are sent to Interactions.#65038#65036CoreAdded claude-agent as a web search provider. With Claude Agent connected, set "websearch": { "provider": "claude-agent" } to run websearch through Claude Code's WebSearch, which Claude plans include, so any model can search without a search API key.#65704CoreWith full_codemode on, agents can call tools.opencode.session.interrupt to stop another session, its background jobs and its subagents.#65718CoreStored blobs, such as generated videos, are deleted a week after they were written, so the data folder no longer grows without limit. Copies saved into your project are untouched; GET /api/experimental/blob/:id returns 404 for a deleted blob.#65671CoreConfig now reloads only when a file that feeds it changes, not on every write under .opencode such as editing a skill.#62158Terminal/login and /auth open the same dialog as /connect, which now lists a single OpenCode entry that includes OpenCode Go models.#65265#65466TerminalPressing ↓ opens the picker on the first tab with something running, the same tab that clicking the footer opens.#64972TerminalText prompt dialogs such as rename session, /btw, worktree names and connect forms end with a Submit button, and prompt and export dialogs have tighter spacing.#64944TerminalThe opencode theme's light mode uses lighter grays for the prompt box, selected tabs and hovered rows.#64962DesktopNew tabs that a page opens in the browser pane appear beside the tab they came from, and middle-clicking a link opens it in a new tab.#65126#65091DesktopComments in the browser pane, file viewer and review diff can be sent to the session right away with Mod+Enter. Depending on your follow-up setting, they send, steer or queue.#65264DesktopAdded Wrap code blocks under Settings › General › Timeline, plus a Wrap lines button on timeline code blocks with lines too long to fit.#64545#64576DesktopAdded Keep side panel open across sessions in Settings › General.#64950DesktopAdded an Archive session command, bound to Cmd+Shift+S (Ctrl+Shift+S on Windows and Linux).#65428DesktopThe Home session menu has Open and Open in background, and Home shows the provider connect hint when nothing is connected.#65209#65212#64885DesktopThe Inbox layout's sidebar has a Drafts group for unsent new-session drafts.#65525DesktopConversation search (Cmd+F / Ctrl+F) has previous and next match buttons.#64865DesktopThe connect dialog lists one OpenCode option that includes OpenCode Go models, Settings › Providers follows the same rule, and the free model picker has a tighter layout.#65466#65740#64927DesktopWhen you reach your ChatGPT Business workspace's usage limit, a dialog explains it and offers Copy request for admin.#64926DesktopShortcuts go through the same keymap engine as the TUI, and the new Stop session command can be changed in Settings › Shortcuts.#64394DesktopShortcuts can be key chords, such as Mod+K Mod+C or G I. In Settings › Shortcuts, click + on a shortcut you just recorded to add another key, up to 4. While a chord is pending, a panel lists the keys that continue it.#64395DesktopThe activity pill keeps a subagent listed while work it started is still running.#64790DesktopThe goal pill has a new design with the labels Following goal, Goal paused and Goa