OpenCode v2.2.7 shipped on November 10, the first tagged OpenCode release after v2.2.6. Its headline items: Copilot accounts with an Auto pool can pick Auto in the model picker, Desktop side panel tabs get close and reopen shortcuts, and sessions can be marked as read or unread. The release also lists two breaking changes: one affects code that imports @opencode/ai directly, the other changes which SDK endpoints wait for plugins to load.
GitHub Copilot Auto
Pick 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.
Other GitHub Copilot changes in this release:
- GitHub Copilot session costs use the amount Copilot charged instead of the catalog estimate, and content-filter errors name the filter that blocked the response (bugfix).
- GitHub Copilot picks up a new API endpoint after a plan change on its next model refresh, so you no longer have to sign in again (bugfix).
Breaking changes
@opencode/ai: ImageResponse.image is removed
This affects code that imports @opencode/ai directly. Read response.images[0] instead of response.image.
SDK: fewer endpoints wait for plugins to load
On 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.
MCP logins and tool calls
- Remote MCP servers that rotate refresh tokens no longer sign you out when several clients refresh at once or the token endpoint fails for a moment (improvement).
- A temporary failure while refreshing an MCP OAuth token keeps your login for the next try instead of marking the server
needs_auth(bugfix). - MCP tool calls no longer fail when the server’s result doesn’t match the tool’s own output schema, so completed actions aren’t reported as failed (bugfix).
- MCP prompts stay available when refreshing a server’s prompt list fails (bugfix).
- When MCP servers connect, disconnect or change tools, Code Mode sends the model a short list of what changed instead of the whole tool catalog (improvement).
read and shell results
readaccepts a negativeoffsetto read from the end of a file, such as-50for the last 50 lines. An offset past the end returns the last lines and the file’s line count instead of failing (improvement).- When
readcan’t find a file, it suggests close names: different capitalization, another extension, a small typo, or the matching path inside the project (improvement). - Shell results end with
Exit code: N. Commands killed by a signal show the signal name, and timeouts say how long they waited and suggest a larger timeout (improvement). - Under zsh, a glob that matches nothing, like
rm *.tmp, is passed through as bash does instead of stopping the command (bugfix). - Truncated shell output that starts mid-line drops the partial first line, so the “showing lines X–Y” notice is exact (bugfix).
- On Windows, multi-line commands no longer lose everything after the first line with PowerShell 7 from the Microsoft Store (bugfix).
readno longer cuts an emoji in half when it shortens a long line (bugfix).
Desktop: side panel tabs and read state
- Right-click a side panel tab to Close tabs to the right.
⌘Wcloses side panel tabs wherever focus is, the new Close session tab command (⌥⌘WorCtrl+Alt+W) always closes the session tab, and⌘⇧Treopens the last closed side panel or session tab where it was (improvement). - Mark as read and Mark as unread are added to the menus for tabs, Home rows, project rows and inbox cards, and Rename to inbox cards (improvement). Choose Mark as unread to keep its dot until you next visit.
- The answer you pick in the question dock shows as a raised card (improvement).
- On Windows and Linux,
Ctrl+Shift+Rtoggles the review panel again instead of reloading the window (bugfix). - Selects, menus, tooltips and toasts opened from a dialog are reachable by screen readers (bugfix).
How to use
- GitHub Copilot Auto: pick Auto in the model picker when your Copilot account has an Auto pool.
- Code that imports
@opencode/aidirectly: readresponse.images[0]instead ofresponse.image. - SDK callers: entries and actions that a plugin provides appear when it finishes loading, so refresh on the matching
*.updatedevent. - Read the end of a file:
readaccepts a negativeoffset, such as-50for the last 50 lines. - Usage in the TUI: the model picker no longer has a Usage action; use
/usageinstead.
Also worth knowing
- Prompt cache warming times its pings from the model’s
cache.ttlby default (interval: "auto"), or every 4 minutes without a TTL. Models whose cache outlasts the warmingdurationare no longer pinged (improvement). - Cache warming stops for a session when a ping rebuilds the cache instead of reading it, counts its interval from when a request was sent, and no longer pings during compaction or after the session is deleted (bugfix).
- Tokens and cost from
session.generaterequests, including cache warming pings, count toward the session’s totals (bugfix). - With
background_compactionon, a background summary no longer stops a running Claude Agent session mid tool call (bugfix). - After
opencode auth logouton a.well-knownintegration, its remote providers and policies stop applying until you log back in (bugfix). - OpenCode Console workspace policies still apply when Console’s instructions or skills fail to load (bugfix).
- Cloudflare AI Gateway providers set up with only
gatewayApiKeynow send that key (bugfix). - A v1 model override that sets only some capabilities no longer resets the others, so catalog capabilities like PDF input are kept, and a v1 provider config that sets both
apiandoptions.baseURLkeepsoptions.baseURL(bugfixes). - A fresh install imports saved provider credentials from the legacy
auth.json, and skips an invalid one with a warning instead of stopping setup (bugfix). - Markdown agents whose
descriptionstarts with a bracketed tag, like[Beta] Reviews code, now load, and Markdown agent discovery skipsnode_modules(bugfixes). - In the TUI, the update and confirm dialogs have buttons you can move between with
←/→andTab/Shift+Tab, and the model picker no longer has a Usage action; use/usageinstead (improvements). - In the TUI, session exports are saved in the current working directory instead of the system temp folder, and the TUI follows the terminal’s current light or dark mode instead of a cached palette (bugfixes).
- In the SDK,
session.generatereturnstokensandcostalong withtext, andcredential.updatedincludes theintegrationIDandcredentialIDof the login that changed (improvements). - Predicate questions in
client.experimental.generate.decisionsaccept optionalcriteria: { true?, false? }(improvement). - ACP clients can redirect a running turn with the
_session/steeringextension, advertised as_meta.steering.supportedininitialize(improvement).
For the full list of changes, see the v2.2.7 release notes, and follow the release feed for the next tag.