VSCodium does not recall Copilot sign in on Pop! OS
Describe the bug
I've installed Copilot according to the guide. It works. I've got my ghu_ creds in my ~/.config/github-copilot/hosts.json, etc. However, every time I re-launch the app, it asks me to sign in to github again.
I also did the "cancel" option while trying to connect, which then suggests for me to use the PAT approach. This approach simply does not work with VS Codium.
I get this:
2024-04-11 22:35:26.373 [info] [auth] Invalid copilot token: missing token: 404
2024-04-11 22:35:26.387 [info] [auth] Invalid copilot token: missing token: 404
2024-04-11 22:35:26.390 [error] [auth] Extension activation failed: "User not authorized"
then I retry, and get this
2024-04-11 22:35:49.021 [error] [auth] Retrying auth
2024-04-11 22:36:11.665 [error] [auth] Extension activation failed: "No auth flow succeeded."
Please confirm that this problem is VSCodium-specific
- [X] This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.
In fact, Microsoft VS Code has a similar, but different bug. It also asks me to sign in every time, but the web sign in (from weird complex github links) doesn't work, however the PAT seems to, so when I do the same "try another method", it immediately realizes that things are actually fine and leaves me be, without trying to launch a browser.
Please confirm that the issue/resolution isn't already documented
- [X] I checked the Docs page and the Troubleshooting page and my issue is not mentioned there.
The "Sign in to GitHub" section in the index does not solve my problem (unless I misunderstood what I had to do, which I don't exclude).
To Reproduce Steps to reproduce the behavior:
- Find a Linux with Pop-OS! (Ubuntu variant) 22.04 installed
- Install VS Codium
- Follow the steps in the guide (my version of the extension is
GitHub.copilot-1.179.816.vsix) - Sign in via the copilot extension notification box (either method: link or PAT)
- Close VS Codium
- Open VS Codium again
Expected behavior Not being asked to connect every time. Even VS Code's version of the bug (which is 3 quick clicks to resolve, a bit annoying, but much less time-consuming than the 8 hex digit captcha-ish launch for Codium) is an improvement.
Desktop (please complete the following information):
- OS: Pop! OS (Ubuntu) 22.04
- Architecture: x86_64
- Version: 1.87.2
- App Manager: apt ? flatpak ? downloaded via the pop shop which uses flatpak for vscodium
- Sandboxed: Flatpak
It's not just with Copilot. I don't remember authorizations for all three plugins that need it: Codeium, GitHub Actions, GitHub Pull Requests.
And it's so exhausting that it looks like I'm going to have to switch back to vscode 😞
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue, please open a new issue.