OpenCode v2.2.7 lets GitHub Copilot pick the model for each session

4 days ago

OpenCode v2.2.7: GitHub Copilot Auto picks the model for each session, remote MCP logins stay signed in, read takes a negative offset, and shell results say how commands ended. https://github.com/anomalyco/opencode/releases/tag/v2.2.7 https://github.com/anomalyco/opencode/blob/v2.2.7/CHANGELOG.md

Ask about this presentation

Chapters

  1. 0:00Copilot picks the model for each session
  2. 0:15MCP logins stay signed in
  3. 0:28read takes a negative offset
  4. 0:42Shell results say how commands ended
  5. 0:55Desktop tabs close, reopen and stay unread
  6. 1:08Three fixes
  7. 1:22On Copilot? Upgrade for Auto
Show transcript
  1. Pick Auto in the model picker, and GitHub Copilot's router chooses the model for each session at the Auto discount. Your account needs an Auto pool, and if routing fails, you get your default chat model.

    Slide text
    opencode
    anomalyco/opencode · CHANGELOG.md · PR #62997

    GitHub Copilot Auto picks the model for each session

    Auto in the model picker for accounts with an Auto pool, at the Auto discount
    If routing fails OpenCode falls back to your default chat model
  2. Remote MCP servers that rotate refresh tokens no longer sign you out, even when the TUI, the desktop app and other projects refresh the same login at once, or the token endpoint fails for a moment.

    Slide text
    opencode
    anomalyco/opencode · CHANGELOG.md · PR #62827 · PR #63012

    Remote MCP logins stay signed in

    Several clients refresh at once TUI, desktop app, background service, other projects
    The token endpoint fails for a moment your login is kept for the next try
  3. The read tool takes a negative offset now, so minus fifty gives the agent the last fifty lines of a log. And when a file isn't there, read suggests the names it probably meant.

    Slide text
    opencode
    anomalyco/opencode · CHANGELOG.md · PR #62147

    The read tool reads from the end

    offset: -50

    A missing file gets close names: another case, another extension, a small typo

  4. Every shell result now ends with its exit code. A command killed by a signal names the signal, and a timeout says how long it waited, so the agent can try a longer one.

    Slide text
    opencode
    anomalyco/opencode · CHANGELOG.md · PR #62141

    Shell results say how a command ended

    Every result ends with Exit code: N
    Killed by a signal the signal is named
    Timed out how long it waited, and a larger timeout to try
  5. In the desktop app, right-click a side panel tab to close every tab to its right, Command Shift T reopens the last one you closed, and Mark as unread keeps a session's dot until you come back.

    Slide text
    opencode
    anomalyco/opencode · CHANGELOG.md · PR #62922 · PR #62889
    Close tabs to the right right-click a side panel tab
    ⌘⇧T reopens the last closed tab where it was
    Mark as unread keeps a session's dot until you visit
  6. Background compaction no longer stops a Claude Agent session in the middle of a tool call. Finished MCP actions aren't reported as failed. And the TUI follows your terminal's light or dark mode.

    Slide text
    opencode
    anomalyco/opencode · CHANGELOG.md · PR #63025 · PR #61254 · PR #62248
    Background compaction no longer stops a Claude Agent session mid tool call
    MCP tool calls no longer fail when a result misses its own schema
    The TUI follows your terminal's light or dark mode
  7. If you use OpenCode through Copilot, I'd upgrade today and switch to Auto: the router does the model picking, and you pay the Auto rate. If you build on the SDK, read the changelog first.

    Slide text
    opencode
    anomalyco/opencode · CHANGELOG.md

    On GitHub Copilot? Upgrade and try Auto.

    Building on the SDK or @opencode/ai? Two breaking changes: OpenCode's CHANGELOG.md on GitHub

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York