Skip to content

fix(core/auth): remove active stored account on logout#291

Merged
shiny-code-bot merged 1 commit into
mainfrom
fix/account-scoped-logout
Jun 1, 2026
Merged

fix(core/auth): remove active stored account on logout#291
shiny-code-bot merged 1 commit into
mainfrom
fix/account-scoped-logout

Conversation

@shiny-code-bot
Copy link
Copy Markdown
Collaborator

Summary

  • make logout disconnect the active stored account instead of only clearing auth.json
  • preserve unrelated stored accounts for later switching
  • fall back to matching the current auth.json credentials when the active account pointer is missing or stale
  • add regression coverage for active account removal, unrelated account preservation, and stale-pointer recovery

Refs #280
Refs #279

Verification

  • cd code-rs && cargo test -p code-core logout_
  • ./build-fast.sh

@cbusillo cbusillo force-pushed the fix/account-scoped-logout branch from 6e6b793 to dbb8cb7 Compare June 1, 2026 01:10
@shiny-code-bot shiny-code-bot merged commit 242f6fd into main Jun 1, 2026
1 check passed
@shiny-code-bot shiny-code-bot deleted the fix/account-scoped-logout branch June 1, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants