Skip to content

Harden auth profile switching#124

Merged
shiny-code-bot merged 1 commit into
mainfrom
codex-lab-auth-switch-safety
Jun 17, 2026
Merged

Harden auth profile switching#124
shiny-code-bot merged 1 commit into
mainfrom
codex-lab-auth-switch-safety

Conversation

@shiny-code-bot

Copy link
Copy Markdown
Collaborator

Summary

  • preserve auth profile identity metadata unless new login data replaces it, and clear stale email when account id changes without email
  • record actual profile identity after in-TUI /login completes
  • rebuild selected-profile config/cloud bundle and prepare the replacement session before switching app-server clients

Tests

  • cargo test -p codex-login auth_profiles::tests::record_login
  • cargo check -p codex-tui
  • cargo fmt --package codex-login --package codex-tui -- --check

Review

  • planning agent agreed with prepare-then-commit lifecycle approach
  • review agents found metadata/config gaps; fixed and final review returned no issues

@shiny-code-bot shiny-code-bot merged commit ef9e039 into main Jun 17, 2026
6 checks passed
@shiny-code-bot shiny-code-bot deleted the codex-lab-auth-switch-safety branch June 17, 2026 20:41
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.

1 participant