-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copilot chat logged out while autocomplete is logged in #21255
Comments
While tailing, I did find this during opening of the assistant:
|
I also had this issue. It's very difficult to reproduce, even removing zed's application support directory doesn't seem to trigger it after I've fixed it. What I've done is reset zed by removing |
Currently facing this issue, Reproducible, although downgrading back to earlier stables does solve the issue, but I'll post further with details Summary: AI assistant chat configure settings show github copilot yet to be signed in, when it already is, and does not show up in the options for selecting model. Tried basic fixes -> reinstall, logout reconfigure, downgrade from preview to stable. Version 0.162 pre release windows build however does not seem to have this issue |
This is happening to me too with Copilot license provided by my employer. Line completion works fine (and shows the status icon as logged in) but the assistant panel remains logged out with a warning that reads Clicking on the sign in button from the assistant panel goes through all the usual flow and shows me the following: However, it remains logged out. Environment |
It appears that the format and location of the Github Copilot file, from which the OAuth token is extracted, have changed. This might be related to the changes introduced in #20520. The reason Copilot chat is not functioning properly seems to be that the OAuth token is no longer stored in {"github.com:randomAppId":{"user":"username","oauth_token":"token","githubAppId":"randomAppId"}} whereas Zed is expecting a format like {"github.com":{"user":"username","oauth_token":"token","githubAppId":"randomAppId"}} Thus, the easy workaround is to cp ~/.config/github-copilot/apps.json ~/.config/github-copilot/hosts.json and then to edit the hosts.json file and remove I think this should work for Linux and macOS, on Windows the path would look like something like |
Check for existing issues
Describe the bug / provide steps to reproduce it
I am signed in but still see the login prompt. Autocompletion is working.
Got copilot through our company profile, has Github enterprise.
If there is any useful debug info I can provide you, I would be happy to help.
Environment
Zed: v0.163.2 (Zed)
OS: macOS 15.1.0
Memory: 24 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
I could not find any relevant log entries.
The text was updated successfully, but these errors were encountered: