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
vscode.lm.selectChatModels call hangs when GitHub token is invalid #275591
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.
Reacted by Andrei Toma, Andreea, alexandru-vasilescu, csbarnea, Andrei-Alexandru Podaru, Theodor Negrescu, Constantinescu Ciprian, mirunaGeo, geanaliugabriela, Damian Mihai Robert and 16 more
Activity
lramos15 commentedon Nov 5, 2025
The whole school upvoting the issue is a nice touch