-
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 stops responding when token is deleted/expired #50973
Comments
I think we could still improve the experience by introducing a much shorter timeout for the first byte to arrive (then let the response take long if there's data coming) |
The changes I made in #50748 should also cover this if I understand correctly. When a user update their access token or url that are invalid they will be logged out automatically with error message. |
I think they might only cover the case when you start VS Code and the token is invalid. I just replicated the behaviour on
Cody then gets stuck in the blinking cursor: And in the background this message is logged:
This we should surface to the user. |
@mrnugget I just built from main but can't reproduce it. it will log the user out right away when the access token is invalid. Can you try pulling the changes from the latest main and see if the issue persists? |
Ohhhhh i missed the important part of your message about deleting the token on sourcegraph instance and not on VS Cody!!!! ignore my last message, I can get a pr for that! Edit: PR #51005 |
RE #50973 #50307 Current Issue: When the token become invalid during the chat session, it does not log users out and not displaying any error message Solution: Log the user out for invalid login credentials during the chat session. More detail in Loom: https://www.loom.com/share/cfd51d7cd97e49989af77c8d2e103973 Updated: Display error message in frontend https://www.loom.com/share/4a4ef8a298e241c9af220ad116a4d5be Example: <img width="1088" alt="image" src="https://user-images.githubusercontent.com/68532117/234289394-e8d3fd57-3051-4f11-8d6c-36275dde02a4.png"> Shout out to @eseliger for his PR on sending error messages to chat client! ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles --> All tests have passed and tested locally. See changes in the attached loom video above
Closing with #51005 |
RE sourcegraph/sourcegraph#50973 sourcegraph/sourcegraph#50307 Current Issue: When the token become invalid during the chat session, it does not log users out and not displaying any error message Solution: Log the user out for invalid login credentials during the chat session. More detail in Loom: https://www.loom.com/share/cfd51d7cd97e49989af77c8d2e103973 Updated: Display error message in frontend https://www.loom.com/share/4a4ef8a298e241c9af220ad116a4d5be Example: <img width="1088" alt="image" src="https://user-images.githubusercontent.com/68532117/234289394-e8d3fd57-3051-4f11-8d6c-36275dde02a4.png"> Shout out to @eseliger for his PR on sending error messages to chat client! ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles --> All tests have passed and tested locally. See changes in the attached loom video above
When Cody can't talk to the Sourcegraph backend we currently don't give any indication of that to the user.
To reproduce:
What happens: cursor keeps blinking
What I want to see: error/notice that cody doesn't work anymore
(I think that @eseliger has looked into this a bit with rate limiting, but not sure)
The text was updated successfully, but these errors were encountered: