OpenCode v2.2.7 adds GitHub Copilot Auto model routing
Brief
OpenCode v2.2.7 adds Copilot Auto routing and includes core, desktop, terminal and SDK changes.
Copilot Auto
- Users whose Copilot account has an Auto pool can choose Auto in the model picker; Copilot’s router selects a model for each session at the Auto discount.
- If routing fails, OpenCode falls back to the account’s default chat model.
Developer changes
- @opencode/ai removes ImageResponse.image; code importing the package directly should read response.images[0] instead.
- SDK session.generate now returns tokens and cost along with text. Some SDK endpoints no longer wait up to five seconds for plugins to load.
Other improvements
- MCP logins are retained through concurrent refreshes and temporary token-endpoint failures.
- GitHub Copilot session costs now use the amount Copilot charged rather than the catalog estimate.
Generated by AI from the original article. Check the source for full details.