Skip to content

Add account switch usage foundation#209

Merged
cbusillo merged 1 commit into
mainfrom
fix/account-switch-foundation
Jun 24, 2026
Merged

Add account switch usage foundation#209
cbusillo merged 1 commit into
mainfrom
fix/account-switch-foundation

Conversation

@cbusillo

Copy link
Copy Markdown
Owner

Summary

  • add a persisted account usage store for token totals, rate-limit snapshots, usage-limit hints, and refresh-attempt gating
  • add account-switch candidate selection with tried-account tracking and optional API-key fallback
  • expose the core modules for the next runtime/TUI integration pass

Audit alignment

This repairs the next auth-cluster audit miss after the good #166-#171 passes: Codex Lab had no Every Code-style account usage/account switching foundation at all. This PR lands the storage and selection layer first so the follow-up runtime hooks can be small and testable.

Good PRs passed before this miss: #166, #167, #168, #169, #170, #171.

Validation

  • cargo fmt -p codex-core -- --check
  • git diff --check
  • scoped review agents: initial findings fixed, re-review reported no blocking regressions
  • attempted focused cargo test/check, but local codex-core compile exceeded the session timeout; leaving full validation to CI

@shiny-code-bot shiny-code-bot force-pushed the fix/account-switch-foundation branch from 0e620da to c760cea Compare June 24, 2026 23:10
@cbusillo cbusillo merged commit 3e44989 into main Jun 24, 2026
10 checks passed
@cbusillo cbusillo deleted the fix/account-switch-foundation branch June 24, 2026 23:28
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