You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When GITHUB_TOKEN is set for GitHub tooling, OpenCode also treats github-copilot as connected through generic environment authentication, even when no Copilot OAuth credential exists. opencode auth list consequently reports GitHub Copilot under Environment.
This bypasses Copilot-specific OAuth, model-discovery, and request-routing logic. Without the endpoint metadata returned by Copilot model discovery, gpt-5.6-sol is sent to /chat/completions, resulting in request failure every time.
The minimal expected behavior is to ignore GITHUB_TOKEN when automatically activating the github-copilot provider and require the existing Copilot OAuth flow. Generic environment authentication for other providers should remain unchanged.
Plugins
None; this concerns the built-in GitHub Copilot provider.
OpenCode version
dev at e00890c672 (1.18.21)
Steps to reproduce
Use a clean OpenCode data directory with no stored github-copilot credential.
Set a non-empty GITHUB_TOKEN.
Run opencode auth list.
Observe that GitHub Copilot is reported under Environment despite no Copilot OAuth login.
Select a newer Copilot model such as github-copilot/gpt-5.6-sol.
Observe that OpenCode uses the generic environment-token provider path instead of Copilot OAuth/model discovery, resulting in gpt-5.6-sol being sent to /chat/completions and failing.
Activity
github-actions commentedon Oct 22, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.