Repository navigation
feat: opencode release v2.4.0 - #95
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's Changed
Highlights
/automation. Set"automations": falsein your config if you don't want them. (#65296, #65186)generate_video. It keeps working while the video renders and saves the files into your workspace when they're ready. (#63666, #65664)opencodetheme is the new one. Pickopencode-classicin Theme to keep the previous colors. (#64988)Upgrade notes
experimental_image_generateis nowgenerate_image. Permission rules with the old name are mapped automatically, but saved "always allow" approvals are not, so it asks again once. (#65682)name@latest, a version range (such asname@^1.2.0), a Git branch or a Gitsemver: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 barename, an exact version, another tag such as@next, a Git tag or a commit hash doesn't update itself;opencode plugin updatestill updates those by hand. (#64764, #65052, #65056)GITHUB_TOKEN. SetCOPILOT_GITHUB_TOKENor sign in with OAuth. (#64697)protocolsetting is probed before falling back to the legacy handshake. Setprotocol: "legacy"on a server that misbehaves. (#65282)opencodetheme changed. It now means the new theme; setopencode-classicfor the previous look, andexperimental["new-designs"]: falsein your TUI config for the previous designs. (#64988)browserdeny in your permission rules refuses every agent browser call. (#63002)opencode auth loginlist one OpenCode option that includes Go models. OpenCode Go is only listed when a Go key is already saved, and saved keys keep working. (#65466)Cmd+Shift+S(Ctrl+Shift+Son Windows and Linux) now archives the open session. The composer'sCmd+UandEscape/Ctrl+Gnow follow the Attach file and Stop session shortcuts. (#65428, #64394)tools.opencode.session_renameandsession_moveare nowtools.opencode.session.renameand.move. Direct tool names and permission actions are unchanged. (#65080)@opencode/pluginrequires@opentui/coreand@opentui/solid0.9.4 or later. Renderers passed toregisterCodeBlockRenderernow receive an OpenTUI block (block.text) instead of a Markdown token;codeBlockStyleandescapedare gone. (#63989)generate.*,voice.*andwebsearch.queryendpoints started waiting up to 5 seconds for plugins and returning 503 after that (#63040); 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*.updatedevent, such asmodel.updated. One-shot scripts should wait on their side, for example by pollingplugin.listuntil it returns plugins, or the endpoint until the entry they need appears. (#63814)experimental.part_rows: falserestores the old path for this release. (#65039)Core
Improvements
/automationcommand or theautomationtools. A shell action asks for approval once, when it's created, and records each run's exit code and output. Set"automations": falseto turn them off. (#65296, #65186, #65217, #65236, #65001, #65699)protocolsetting now negotiate the newest MCP protocol and fall back to the legacy handshake. (#65282)generate_videowhenever 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 withexperimental.video_generate.model. The image tool is now calledgenerate_image. (#63666, #64546, #65664, #65682)name@latest, a version range, a Git branch or a Gitsemver:range) are checked on startup and every 24 hours, and a newer match is installed and reloaded without a restart. A range stays within its range, and if a new version fails to load, the previous one keeps running. Other plugins still only report updates. (#64764, #65052, #65056)configDirsetting 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 fromopencode. (#62514, #65035, #65016)opencode auth logoutor the remove button in the app, now also revokes it with OpenAI. (#64947)gpt-live-1.1. (#65491)read, or reading its tail, takes far fewer reads, which is much faster on remote workspaces. (#65611)stackshowing where they were thrown, and a failed import says why. (#64908, #64939, #64587)timeoutset 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. (#64692)noneandthinkingvariants, and the provider'ssafetySettingsare sent to Interactions. (#65038, #65036)claude-agentas a web search provider. With Claude Agent connected, set"websearch": { "provider": "claude-agent" }to runwebsearchthrough Claude Code's WebSearch, which Claude plans include, so any model can search without a search API key. (#65704)full_codemodeon, agents can calltools.opencode.session.interruptto stop another session, its background jobs and its subagents. (#65718)GET /api/experimental/blob/:idreturns 404 for a deleted blob. (#65671).opencodesuch as editing a skill. (#62158)Bug fixes
GITHUB_TOKEN, which git tooling and GitHub Actions often set without Copilot access. It now readsCOPILOT_GITHUB_TOKEN. (#64697)shelldeny rule still blocks them. (#65269)execute. (#65292, #65193, #65494)full_codemodeis on. (#65712)editandpatchreplacing every non-UTF-8 character (Latin-1, cp1252, GBK…) with�across the whole file. They now refuse to rewrite such files. (#64868)core.autocrlf=true, and symlinks as modified withcore.symlinks=false. (#64884)opencode service set passwordwriting the password to the CLI log. (#64911)opencode runhanging when a FIFO is passed as an attachment; it's now rejected right away. Thanks @yang0228. (#64696)opencode <name>crashing with a stack trace when<name>is neither a command nor a directory. It now prints help and the error. (#65262)variantnext tomodel, and agents being skipped when frontmatter repair turned inline lists or objects into strings. (#65118, #65119)executeorpatch. (#64706)gpt-6.2-astraand later Astra models getting a 500k context window with ChatGPT sign-in; they stay at 272k. (#64725)cyber_policyand Gemini "terms of use" refusals are now reported as content policy errors. Thanks @lu-zero. (#64844, #64910)16:9. (#64822)localeCompareandDatetoLocale*honor their locale and options,toBase64/fromBase64honor their options,Buffermap,filter,sliceandsubarrayreturn a Buffer, andUint8Array.BYTES_PER_ELEMENTis defined. (#64935, #64938, #64931, #64933, #64930, #64965)curlis installed through Snap. (#65132)TUI
Improvements
opencodeis the new theme. The previous default is available asopencode-classic, andopencode2keeps working as an alias ofopencode. To go back to the previous designs, turn off New designs in the Experiments dialog. (#64988)/loginand/authopen the same dialog as/connect, which now lists a single OpenCode entry that includes OpenCode Go models. (#65265, #65466)↓opens the picker on the first tab with something running, the same tab that clicking the footer opens. (#64972)/btw, worktree names and connect forms end with a Submit button, and prompt and export dialogs have tighter spacing. (#64944)opencodetheme's light mode uses lighter grays for the prompt box, selected tabs and hovered rows. (#64962)Bug fixes
…. (#64934)Desktop
Improvements
Mod+Enter. Depending on your follow-up setting, they send, steer or queue. (#65264)Cmd+Shift+S(Ctrl+Shift+Son Windows and Linux). (#65428)Cmd+F/Ctrl+F) has previous and next match buttons. (#64865)Mod+K Mod+CorG 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. (#64395)bun --cwd packages/app build --base=/opencode/. (#64597)Bug fixes
opencode://open-projectandopencode://new-sessionlinks doing nothing. (#65332)~/Downloads/clip.mp4showing "File not found".~now opens in the server's home folder. (#65689)app-update.yml, such as AUR packages, showing update-check errors. Settings now shows Updates unavailable. (#64681)Tab, and the Compacted label only partly highlighting on hover. (#65215, #65192, #65176, #65177, #65211, #65213, #65644)SDK
Improvements
experimental.job.cancelto cancel a running background job, and anexperimental.job.updatedevent when a job starts, moves to the background or ends.@opencode/client/solid'screateDatahas ajobslice. (#64790, #65266, #64956)experimental.generate.video.createand.get) no longer need a flag. Video jobs survive a server restart, can return more than one video, and stay readable for 24 hours after they finish. (#65664, #64546)Extensions
Improvements
options.codemodeto an object ({ pinned?, description?, input?, output? }) to give its Code Mode form its own description and schemas. Top-leveloptions.pinnedstill works but is deprecated. (#64515)execute.beforeandexecute.aftertool hooks receiveinfo, the tool's definition, andcodemode, which is true when a Code Mode script made the call. (#64515)revoketo sign a credential out remotely before it's removed. (#64947)api.data.job.list(sessionID)(experimental). (#64956)experimental.idlebackground entries can have the kindvideo. (#63666)Plugin.define({ icons })and use them throughctx.icons. The built-inoutline-pairandoutline-steericons were removed. (#64577)composer.send(commentID)andcomposer.delivery(), and theBrowsercontract addsexperimental.openandexperimental.close. (#65264, #63002)System.openonly launches HTTP, HTTPS and mail URLs, andBrowser.openrefusesfile://URLs outside the built-in preview. (#63002)Full Changelog: https://github.com/anomalyco/opencode/releases/tag/v2.4.0