fix(codex): prefer ambient account after reauthentication - #484
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughAdds ambient Codex account reauthentication. The flow updates persisted account data, refreshes provider usage, exposes a settings button, registers a Tauri command, and adds locale support and tests. ChangesCodex account reauthentication
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant SettingsUI
participant TauriBridge
participant codex_account_reauthenticate
participant AccountManager
SettingsUI->>TauriBridge: invoke codexAccountReauthenticate
TauriBridge->>codex_account_reauthenticate: invoke command
codex_account_reauthenticate->>AccountManager: reauthenticate ambient account
AccountManager-->>codex_account_reauthenticate: authenticated account
codex_account_reauthenticate->>codex_account_reauthenticate: refresh persisted accounts
codex_account_reauthenticate-->>TauriBridge: canonical persisted account
TauriBridge-->>SettingsUI: reload account and usage state
Suggested reviewers: Merge Risk: ⚪ Minimal · up to Ambient Codex login refresh is wired through the desktop app and preserves the reconciled persisted account selection. No merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 78.26% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 23 functions across 8 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Canonical same-repository rehost of #475 from stephanus-tantiono/Win-CodexBar.
This branch carries the repaired Codex ambient reauthentication flow at 867422f. The persisted Ambient record is selected before identity-only fallback, including when Managed and Ambient records share an identity; regression coverage protects that precedence.
Original PR: #475
Original repaired head: eaaa752
Canonical head: 867422f
Summary by CodeRabbit
New Features
Bug Fixes
Tests