Unable to switch github account.
In Zed Code Editor, there is a login issue that occurs when signing out and attempting to sign in with different GitHub credentials. Once logged in with a specific GitHub account, the editor does not allow the user to input new credentials or sign in with a different account. Instead, it automatically signs the user back into the previously logged-out account.
Bug Reproduction Steps:
Download and install Zed Code Editor. Launch the Zed Code Editor application. Upon launching, Zed Code Editor automatically logs in to GitHub via the default Chrome profile. Accidentally choose the wrong Chrome profile and log into a secondary GitHub account. Sign out of the current GitHub account within Zed Code Editor. Attempt to sign in with new GitHub credentials or a different account. Notice that the input fields for new credentials or account selection are not available. Zed Code Editor automatically signs back into the previously logged-out account.
Expected Behavior: When signing out of a GitHub account within Zed Code Editor, the user should be able to enter new credentials or choose a different account to sign in with.
Actual Behavior: After signing out of a GitHub account, Zed Code Editor does not provide any options to enter new credentials or choose a different account. It automatically signs the user back into the previously logged-out account, preventing the use of different GitHub credentials.
Environment
You are using a MacBook with an M1 chip and 8GB of RAM. The operating system you have installed is macOS Ventura.
Thanks for reporting this. It's indeed not possible to switch accounts through the UI yet. However, as a temporary fix, you can remove the Zed Keychain item (https://zed.dev) to force Zed to ask for new credentials again.
On Mon, May 29, 2023 at 11:39 PM Kevin Hovsäter @.***> wrote:
Thanks for reporting this. It's indeed not possible to switch accounts through the UI yet. However, as a temporary fix, you can remove the Zed Keychain item (https://zed.dev) to force Zed to ask for new credentials again.
— Reply to this email directly, view it on GitHub https://github.com/zed-industries/zed/issues/4724, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3NBXWTNXY5FFNJG4KAXLWLXIWI2JANCNFSM6AAAAAAYSECQSY . You are receiving this because you authored the thread.Message ID: @.***>
Can you please refer the exact documentation url ! I could not find anything useful. Thank you very much.
Can you please refer the exact documentation url ! I could not find anything useful. Thank you very much.
There isn't any documentation regarding this AFAIK, but we should probably add some until this is possible to do through the UI.
Please follow these steps in the meantime:
- Close Zed completely.
- Open the
Keychain Accessapplication. - Search for
Zedin the upper-right search box:
- Right click
https://zed.devand selectDelete "https://zed.dev". - Launch Zed again.
Thankyou very much. It fixed the problem and I am very grateful for your help. Also, this code editor feels great and very performant. Goodluck with your ventures ❤️
On Mon, 29 May 2023 at 23:55, Kevin Hovsäter @.***> wrote:
Can you please refer the exact documentation url ! I could not find anything useful. Thank you very much.
There isn't any documentation regarding this AFAIK, but we should probably add some until this is possible to do through the UI.
Please follow these steps in the meantime:
- Close Zed completely.
- Open the Keychain Access application.
- Search for Zed in the upper-right search box.
[image: Screenshot 2023-05-30 at 08 53 56] https://user-images.githubusercontent.com/503025/241872480-985f8772-6b95-454b-955a-510bf50e93b3.png 4. Right click and select
Delete "https://zed.dev". [image: Screenshot 2023-05-30 at 08 54 48] https://user-images.githubusercontent.com/503025/241872671-3d95b6ab-a669-45f1-8311-7484ec1e06af.png 5. Launch Zed again.— Reply to this email directly, view it on GitHub https://github.com/zed-industries/zed/issues/4724, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3NBXWWZGAQN4XO5HYBSMHDXIWKXXANCNFSM6AAAAAAYSECQSY . You are receiving this because you authored the thread.Message ID: @.***>
Can you please refer the exact documentation url ! I could not find anything useful. Thank you very much.
There isn't any documentation regarding this AFAIK, but we should probably add some until this is possible to do through the UI.
Please follow these steps in the meantime:
- Close Zed completely.
- Open the
Keychain Accessapplication.- Search for
Zedin the upper-right search box:5. Right click `https://zed.dev` and select `Delete "https://zed.dev"`. 6. Launch Zed again.
This is super weird. We had documentation for this (I wrote it 🤣), in either the docs or FAQ, and it is simple gone. I haven't looked through the git history yet, but it is gone!
Update: Unbelievable
No wise decisions happen after 4 AM. 😉
Instead of simply reverting It, it can be re-added via the docs, as the FAQ is rarely visited by users and what I originally wrote can be improved a bit.
EDIT
This was the solution for me
- https://github.com/zed-industries/zed/issues/16842#issuecomment-2309123634
rm ~/.config/github-copilot/hosts.json
I still can't :( it logs me in to the wrong Github account :(
or is GitHub Copilot login a different one?
how do I log out/clear the auth for Copilot?
I'm going to go ahead and close as stale. If you need to switch github logins, in Chrome log into your desired github account and make sure that Chrome profile is the last window when you switch to Zed. Then signout/signin and chrome will use that window.
how do I log out/clear the auth for Copilot? You can logout of copilot by clicking signout from the Copilot menu.
If you are experiencing issues with Copilot, rm ~/.config/github-copilot/ may help.
We use copilot.vim under the hood and there are well documented cases where it does not do error handling well with old/stale versions of the copilot config from previous installs.
5. Right click `https://zed.dev` and select `Delete "https://zed.dev"`.
6. Launch Zed again.