Skip to content

[profile-switcher][rust] -- [2/3] Add saved account session credential slots#25470

Closed
dhruvgupta-oai wants to merge 4 commits into
dev/dhruvgupta/desktop-account-sessions-rust-protocolfrom
dev/dhruvgupta/desktop-account-sessions-rust-storage
Closed

[profile-switcher][rust] -- [2/3] Add saved account session credential slots#25470
dhruvgupta-oai wants to merge 4 commits into
dev/dhruvgupta/desktop-account-sessions-rust-protocolfrom
dev/dhruvgupta/desktop-account-sessions-rust-storage

Conversation

@dhruvgupta-oai
Copy link
Copy Markdown
Contributor

@dhruvgupta-oai dhruvgupta-oai commented Jun 1, 2026

Summary

Extends the existing codex-login storage abstraction with per-session credential slots. Saved Desktop account sessions now use the configured file, keyring, auto, or ephemeral backend without replacing the active auth payload.

This keeps saved-session OAuth credentials out of app-server metadata and preserves keyring-backed storage when keyring mode is configured.

Rust Stack

  1. openai/codex#25469 adds the account-session protocol.
  2. This PR
  3. openai/codex#25383 adds app-server session lifecycle behavior.

Validation

  • Ran Rust formatting through just fmt; the Rust formatter completed before the repo-wide Python ruff phase hit a sandbox cache restriction.
  • Did not run tests per requested scope.

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7086019fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/login/src/auth/storage.rs Outdated
Comment thread codex-rs/login/src/auth/manager.rs Outdated
Comment thread codex-rs/login/src/auth/storage.rs Outdated
@dhruvgupta-oai dhruvgupta-oai force-pushed the dev/dhruvgupta/desktop-account-sessions-rust-storage branch from e708601 to c4c1505 Compare June 1, 2026 02:18
@dhruvgupta-oai dhruvgupta-oai force-pushed the dev/dhruvgupta/desktop-account-sessions-rust-storage branch 3 times, most recently from 6e0d3d5 to cffab69 Compare June 1, 2026 19:34
@dhruvgupta-oai dhruvgupta-oai force-pushed the dev/dhruvgupta/desktop-account-sessions-rust-storage branch from cffab69 to fd36ea0 Compare June 1, 2026 20:11
@dhruvgupta-oai
Copy link
Copy Markdown
Contributor Author

Superseded by the consolidated one-file account session store in #25383. Saved session credentials now live inside account-sessions.json, so the intermediate credential-slot layer is no longer needed.

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