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
{{ message }}
Repository navigation
GitHub Copilot model sync times out on 2.0.32 (manual API works) #57264
Thanks for the detailed report and the curl comparison.
I tried this on 2.0.32 (Linux, clean profile) against a mock of the Copilot /models endpoint. I couldn't reproduce the timeout itself, because that needs a real Copilot account, so a maintainer with one will need to check it.
When the endpoint answers quickly, the sync works and the models show up.
When the endpoint is slower than OpenCode's 5-second limit, I get exactly your failed to sync GitHub Copilot models ... TimeoutError log line. But opencode models still lists about 38 github-copilot/... models from the built-in fallback catalog, not 0.
One difference from your curl: OpenCode sends X-GitHub-Api-Version: 2026-08-01 and its own User-Agent, and it does not send Editor-Version or Copilot-Integration-Id. If you have a moment, could you try your curl with the same headers as OpenCode, and check whether it hangs?
Update: The timeout is not the (only) root cause. After re-authenticating Copilot, models initially appeared, then vanished — matching #55082 (Copilot models disappear when an OpenCode Console key is also stored).
Current state:
Auth store has both github-copilot and opencode (Console) credentials.
opencode models shows 0 copilot models.
Manual curl to https://api.individual.githubcopilot.com/models with the stored token succeeds in ~1.5s (HTTP 200, returns 24+ models) even with OpenCode's headers (User-Agent: opencode/latest/2.0.32/cli, X-GitHub-Api-Version: 2026-08-01).
No proxy env vars set.
opencode-quota plugin is installed (but unrelated; the sync timeout predates it).
So the real cause appears to be #55082: copilot models disappear when an OpenCode Console key is also stored. The timeout (#53413) compounds it (sync never retries until restart).
Workaround from #55082: delete the opencode/opencode-go credential rows → Copilot returns, but loses Zen. Not acceptable for users who need both.
Request: fix the conflict so Copilot models remain available when an OpenCode Console key is stored, and retry failed syncs automatically (#53413).
Activity
opencode-agent commentedon Oct 20, 2026
Thanks for the detailed report and the
curlcomparison.I tried this on 2.0.32 (Linux, clean profile) against a mock of the Copilot
/modelsendpoint. I couldn't reproduce the timeout itself, because that needs a real Copilot account, so a maintainer with one will need to check it.failed to sync GitHub Copilot models ... TimeoutErrorlog line. Butopencode modelsstill lists about 38github-copilot/...models from the built-in fallback catalog, not 0.One difference from your
curl: OpenCode sendsX-GitHub-Api-Version: 2026-08-01and its ownUser-Agent, and it does not sendEditor-VersionorCopilot-Integration-Id. If you have a moment, could you try yourcurlwith the same headers as OpenCode, and check whether it hangs?Since you see no Copilot models at all (not even the fallback list), it would also help to know:
opencode-quota) and an emptyopencode.jsonHTTPS_PROXY,NO_PROXY, etc.)Related issues:
NAMKHANH145 commentedon Oct 20, 2026
Update: The timeout is not the (only) root cause. After re-authenticating Copilot, models initially appeared, then vanished — matching #55082 (Copilot models disappear when an OpenCode Console key is also stored).
Current state:
github-copilotandopencode(Console) credentials.opencode modelsshows 0 copilot models.https://api.individual.githubcopilot.com/modelswith the stored token succeeds in ~1.5s (HTTP 200, returns 24+ models) even with OpenCode's headers (User-Agent: opencode/latest/2.0.32/cli,X-GitHub-Api-Version: 2026-08-01).So the real cause appears to be #55082: copilot models disappear when an OpenCode Console key is also stored. The timeout (#53413) compounds it (sync never retries until restart).
Workaround from #55082: delete the opencode/opencode-go credential rows → Copilot returns, but loses Zen. Not acceptable for users who need both.
Request: fix the conflict so Copilot models remain available when an OpenCode Console key is stored, and retry failed syncs automatically (#53413).