Repository navigation
feat: opencode release v2.2.6 - #84
Merged
Merged
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
opencode run -wto start the session in a new git worktree, or--worktree=<name>to name it. (#60712)--archivedtoopencode runto keep scripted and CI sessions out of your inbox and session lists. (#61270)Core
Improvements
pool: true. (#61185)opencode run --archived, which creates the session already archived so scripted and CI runs stay out of the inbox, home, and session lists. Archived sessions are also hidden from the TUI session list and skipped by--continue. (#61270)opencode run --worktree(-w), which starts the session in a new git worktree. Use--worktree=<name>to choose the worktree name. It cannot be combined with--continueor--session. (#60712)interval: "auto"mode based on cache TTL. (#60025, #60969)websearch.usepolicy action and switches for enabling all feature flags withOPENCODE_FLAGS=allorexperimental.all_flags. (#61557, #61826)experimental.codemode_vm: trueorOPENCODE_FLAGS=codemode_vm. (#62358)Bug fixes
opencode runnow waits for the background shell commands, subagents, and image jobs that its prompt started, then lets the model respond to their results before it exits. While it waits, it printswaiting for N background job(s)(abackground_waitevent with--format json). There is no time limit: a job that never exits, such as a dev server or file watcher, keeps the run open until you press Ctrl+C or send SIGTERM, so set a timeout on CI jobs. (#60699, #61911)opencode runexecution so arguments, cancellation, compiled WebSocket upgrades, and service shutdown complete reliably. SIGTERM now cancels the session and its background jobs and exits with code 143. (#61911, #61721, #61518, #61564)/api/*, so a file in your project cannot run scripts on the server's origin. (#62422)fetchnow reject URLs that contain credentials and ignore the#fragmentwhen matching permission rules, and Code Modefetchchecks every redirect against your webfetch rules. (#60502, #61701, #62373)external_directorypermission beforesession_moveleaves the current project. (#62204)opencode run. Also expand~in local MCP working directories, handle legacy stdio servers, and sendlogo_uriduring dynamic registration. (#60490, #61496, #61817, #59031)limit, such as onlylimit.context, instead of dropping the whole provider without an error. Thanks @Tarquinen. (#62240)opencode acpnow removes a session that a client creates withsession/newand closes without prompting, so IDE integrations no longer leave empty sessions behind. (#62189)qflags from freezing shell permission scanning. Thanks @yangguan-xue. (#60791)TUI
Improvements
session.submit_scroll: "keep") to retain your reading position after submitting a prompt. (#61460)Bug fixes
opencode mininow uses the agent colors from your config. Thanks @ferdinandyb. (#62067)/mcplist after signing in to an MCP server, with that server still selected. Thanks @Tarquinen. (#62245)/modelswhen they come from a provider declared in config or an add-on instead of a saved connection. Thanks @Tarquinen. (#62244)Desktop
Improvements
Bug fixes
@mentionsin a line comment that match an existing file or folder, so a comment such asCheck @hereno longer fails the send. Render partial diffs in the review pane when it shows all lines, instead of a blank pane. Thanks @Tarquinen. (#62242, #62241)SDK
Improvements
client.experimental.job.list()and its Effect equivalent for listing background shell, subagent, and image jobs, with session, descendant, kind, and status filters. (#60698)fetchimplementation for OpenCode HTTP, model, web, and remote MCP traffic. (#61582)Extensions
Improvements
CodeBlockandCodeBlockActionGUI registries for custom fenced-code rendering and actions. (#61533)Themeregistry. (#61485)ctx.ui.Select, settings layout components, and menu-row components for native-looking plugin interfaces. (#61527)Bug fixes
Full Changelog: https://github.com/anomalyco/opencode/releases/tag/v2.2.6