Agent Upstart

Cool things people are building with agents — and practical help getting the most out of them.

Playbooks · Coding

OpenCode 2.2.7: Copilot Auto and breaking changes

Written November 10, 2026

OpenCode 2.2.7, released November 10, 2026, lets GitHub Copilot choose the model for each session — and removes a field from the SDK that code importing @opencode/ai directly may depend on.

The problem

An OpenCode user with a GitHub Copilot account picks a model for every session by hand, even when Copilot could route the choice itself. A developer building on OpenCode's SDK has the opposite problem: version 2.2.7 removes ImageResponse.image and changes how long several endpoints wait for plugins to load, so code written against the old behaviour breaks or behaves differently without warning.

What 2.2.7 adds

The 2.2.7 changelog entry leads with 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. The release also adds side panel tab shortcuts. Right-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. There is also a way to mark sessions read or unread, so a session stays flagged until you next visit it. Underneath, MCP logins stay signed in when remote servers rotate refresh tokens. The read tool accepts a negative offset to read from the end of a file. Shell results end with the exit code. Prompt cache warming times its pings from the model's cache TTL. And when MCP servers connect or change tools, Code Mode sends the model a short list of what changed instead of the whole tool catalog.

What breaks

The 2.2.7 release notes list two breaking changes. First, in @opencode/ai, ImageResponse.image is removed: code that imports the package directly must read response.images[0] instead. Second, fewer SDK endpoints wait for plugins to load: on a location 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 a plugin provides appear when it finishes loading, so code that reads them must refresh on the matching *.updated event. Model, provider, generate.*, voice.*, and websearch.query endpoints still wait. Neither change affects the CLI, Desktop, or HTTP API for ordinary use — they bite code that imports the SDK or reads plugin-provided entries immediately after startup.

What to do

If you use Copilot in OpenCode and your account has an Auto pool, try Auto in the model picker for a session and watch what the router picks — the fallback to your default chat model covers a routing failure, so the cost of trying it is one session. If you import @opencode/ai in your own code, search for ImageResponse.image and replace it with response.images[0] before upgrading, and check any code that calls agent.list, integration.list, usage.limits, vcs.init, rpc.call, or artifact.* right after startup: it may now see a partial list and needs to listen for the *.updated event. Upgrade with opencode upgrade, then confirm the version with opencode --version.

Limits

Related playbooks

Sources

Back to: Coding playbooks hub · Also: OpenCode 2.2.6: scripted sessions in fresh worktrees · Run Copilot as the agent in JetBrains Air · Copilot CLI 1.0.108: index, PDFs, Ctrl+C