Commit e014646
authored
fix: account dropdown not refreshed when switching users on the same … (#323)
…deployment via URI
When two Coder URIs targeting the same deployment URL but different
users are opened in sequence, the account dropdown in the plugin header
would still show the username from the first session instead of updating
to reflect the newly authenticated user.
This happened because the same-URL URI handling path calls
refreshSession() directly, bypassing the onConnect callback that
normally updates the account dropdown label after a successful
connection. While refreshSession() correctly replaced the REST client
and CLI instances with ones authenticated as the new user, it never
propagated that change to the UI.
The fix updates refreshSession() to also refresh the account dropdown
label and visibility immediately after the new client is initialized,
keeping the UI consistent with the active session.
- resolves DEVEX-372
- resolves DEVEX-3741 parent cac1571 commit e014646
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
| 535 | + | |
534 | 536 | | |
535 | 537 | | |
536 | 538 | | |
| |||
0 commit comments