You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(auth): login state updates across windows (#5547)
Problem: Users can open multiple VSC sessions. If they sign out or the
connection is lost in another window, then interacting with chat or
in-line suggestions in the original window will only produce cryptic
"Profile does not exist" errors, with no clear way to get back to a
working state.
Solution: Log out once this state is detected (uses chat, invokes manual
or auto inline suggestion).
3 commits:
[fix(amazonq): user stays signed in if they log out in other
windows](270a321)
Problem: Users can open multiple VSC sessions. If they sign out or the
connection is lost in another window, then interacting with chat or
in-line suggestions in the original window will only produce cryptic
"Profile does not exist" errors, with no clear way to get back to a
working state.
Solution: Log out once this state is detected (uses chat, invokes manual
or auto inline suggestion).
[fix(amazonq): disable 'connection already exists' error for login
page](5593784)
Error would appear due to certain race conditions. If the auth page is
visible then we know that we have no connections. (for amazon q only).
[fix(auth): login state updates across
windows](ced109f)
- Uses a vscode filwatcher to detect changes to `.aws/sso/cache`.
- Try to 'reconnect' on new changes based on stored state key.
- Global state is stored across windows.
- Login or log out will happen in all vsc instances.
---
<!--- REMINDER: Ensure that your PR meets the guidelines in
CONTRIBUTING.md -->
License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
0 commit comments