Skip to content

vscode.lm.selectChatModels call hangs when GitHub token is invalid #275591

Closed

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.105.1
  • OS Version: Ubuntu 22.04
  • Github Copilot extension Version: 1.388.0
  • Github Copilot Chat extension version: 0.32.4

I reached a state in which I was receiving the following notification warning: "Your GitHub token is invalid. Please sign out from your GitHub account using the VS Code accounts menu and try again."

In this state, when trying to call vscode.lm.selectChatModels({ vendor: 'copilot' }) inside my extension, it would hang (instead of maybe throwing a similar error).
If I sign into my Github Copilot account again, the problem is fixed. However, I would not expect the selectChatModels call to hang.

Activity

  1. lramos15 commented on Nov 5, 2025

    @lramos15
    Member

    The whole school upvoting the issue is a nice touch

  2. added
    bug
    on Nov 5, 2025
  3. added
    unreleased
    on May 21, 2026
  4. added this to the 1.122.0 milestone on May 21, 2026
  5. added
    insiders-released
    and removed
    unreleased
    on May 21, 2026
  6. locked and limited conversation to collaborators on Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apibuginsiders-releasedmodel-byokon-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions