-
Notifications
You must be signed in to change notification settings - Fork 1.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
cody: fix sign in issues with App #54106
Conversation
@abeatrix just pushed some fixes for the Storybook renders, and approved them on Chromatic ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still issues for me even after those changes. When i reload VS Code, I’m always logged out 😞
Screen.Recording.2023-06-26.at.11.37.28.mov
Noticed something else on When I reload VS Code, Cody always shows up on the sidebar, even if I had another sidebar view active before. |
I'm experiencing a similar bug to @philipp-spiess, where the login page will flash still… but it's usually when you reload from the file explorer or other places. If you reload with Cody focused, I always see the nicer loading animation and chat view. Here is reloading the window from the file explorer, and reloading from Cody chat: Screen.Recording.2023-06-26.at.11.18.59.pm.movI don't think I'm experiencing a full logout though, but it does seem to show the "Download Cody" button on reload if I log into another endpoint, requiring you to use "Switch Account": Screen.Recording.2023-06-26.at.11.26.52.pm.movRepro steps:
|
Hmm the logout issue is weird I don't think I've run into that before. |
@abeatrix My user config has
But I also picked the dotcom login in the dropdown list I think |
@toolmantim @philipp-spiess the app team has confirmed the changes in this PR solved the sign in issues with App (slack thread 1, slack thread 2, slack thread 3), so I'm going to merge this PR and open a new PR for the loading issue. |
Here is the latest demo of the sign in flow using the last commit from this branch: https://www.loom.com/share/9a3be7ebff0248748522da1c3bc5b3df?sid=b755b69b-7ede-424d-b9d0-b966991a9b1f |
Close #54045
Moved from #54063
This PR solves connection issues with App where:
App team has confirmed the changes in this PR fixed the issue: (slack thread 1, slack thread 2, slack thread 3)
Auth View Loading Issue - moving to a new PR
Notice we were setting authStatus on config change, which would first pick up the default config when the view is first loaded.
Update to send authStatus with config file via the publishConfig function, which gets trigger on every config change, and the login function also triggers it since the login function also updates the user config. this one we can make sure the config call would have the latest info.
Here you can see the call stack where login would be called before config change
![image](https://private-user-images.githubusercontent.com/68532117/248308150-aca21b66-1941-4abb-b1b7-ce2ec4cd1696.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4OTIwNzksIm5iZiI6MTcxODg5MTc3OSwicGF0aCI6Ii82ODUzMjExNy8yNDgzMDgxNTAtYWNhMjFiNjYtMTk0MS00YWJiLWIxYjctY2UyZWM0Y2QxNjk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIwVDEzNTYxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkMWVlNDRjMjhiNjkwNTRiODEwYjBkNmU1NGQ2ODQ1OTcxODJjNGM1Yjk2YTBiNDk3YmQ3NDQ1YjkzOGIzYTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pBGPeY3aDnW3BvsRj9iE9Rijd0rPJVbr1zWoGKmGh1A)
update
i found that i broke the last PR by accidentally removed (!view), where
vscodeAPI.postMessage({ command: 'initialized' })
gets called repeatedly 😭Test plan
Here is a video of how the changes would look:
Code.-.Extension.Development.Host.Welcome.-.23.June.2023.mp4