Skip to content

providers: GitHub Copilot model sync never runs after login, no models listed #51928

Closed as duplicate

Description

@rapatar

Description

GitHub Copilot OAuth login succeeds and the account is stored, but no Copilot models ever appear in /models or opencode models. The model-list sync is never attempted after login: the server log contains no sync success or failure for the fresh login, only two historical entries:

2026-09-25 level=WARN message="failed to sync GitHub Copilot models" cause="TimeoutError: The operation timed out."
2026-09-26 level=WARN message="failed to sync GitHub Copilot models" cause="TimeoutError: The operation timed out."

Details:

  • Fresh device-flow login completed today (github.com, Copilot Free plan): server log shows credential created ... integrationID=github-copilot type=oauth, and opencode auth list shows GitHub Copilot / GitHub Copilot / stored.
  • After login: opencode models lists 154 models from other providers, 0 Copilot entries.
  • opencode auth switch github-copilot "GitHub Copilot" reports success but triggers no sync (nothing new in the log) and no models.
  • opencode service restart fires provider.updated / model.updated events but also triggers no sync.
  • The sync endpoint is reachable from this machine (https://api.githubcopilot.com/models answers HTTP 400 unauthenticated, https://api.github.com answers 200), and the binary references https://api.githubcopilot.com, so this is not a general connectivity failure.

Note on possible duplicates: this may be related to #34644 (auto-only plans returning no model list — this account is on Copilot Free, not Student), but the symptom differs (V2 logs sync TimeoutErrors, then no sync attempts at all, rather than a silent drop / Provider not found). It differs from #38812 (V1, Pro/Pro+, model cache populated with 27 models but provider not surfacing — here no model list is ever fetched). Happy to consolidate if maintainers find the same root cause.

Plugins

None (no plugins directory; a third-party picker plugin was briefly tried and removed, unrelated)

OpenCode version

2.0.18 (channel latest, portable Windows build, background service)

Steps to reproduce

  1. Run /connect in the TUI, select GitHub Copilot, complete the device flow on github.com (Copilot Free account).
  2. Confirm opencode auth list shows the stored GitHub Copilot oauth account.
  3. Run /models or opencode models — no copilot/* entries.
  4. Run opencode auth switch github-copilot "GitHub Copilot" — succeeds, still no models, no sync in the log.
  5. Run opencode service restart — still no models, no sync in the log.

Screenshot and/or share link

No response

Operating System

Windows 11 IoT Enterprise LTSC 10.0.26100 x64

Terminal

Windows Console Host (conhost), Windows PowerShell 5.1

Activity

  1. added
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Sep 28, 2026
  2. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

    Thanks for updating the issue with the required description and reproduction details!

  3. alexbarton commented on Oct 5, 2026

    @alexbarton

    Looks like I have exactly the same issue here …

  4. rekram1-node commented on Oct 6, 2026

    @rekram1-node
    Contributor

    Model sync definitely runs after login... would be interested in getting logs and knowing what plan u use? Are u student plan? Are u free?

  5. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    Closing as a duplicate of #34644.

    GitHub Copilot Free and Student plans now only allow Auto model selection, so Copilot's /models returns every model with model_picker_enabled: false and OpenCode ends up listing no Copilot models. #34644 tracks adding a github-copilot/auto model for these plans; the fix is in progress in #55960.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions