[codex] Fix false account disabled redirects#2322
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR changes the error-handling behavior of the disabled-account check in the auth guard. When the RPC fails, the function now returns ChangesDisabled-account RPC error handling
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |



Summary (AI generated)
/accountDisabledis only reached when the disabled-account RPC explicitly returnstrue.Motivation (AI generated)
Users could land on the account-deletion recovery page while still authenticated because transient account-status check failures were treated as disabled accounts. The page then could not find a deletion date because the account was not actually pending deletion.
Business Impact (AI generated)
This avoids alarming active users with a false account deletion message and reduces support risk from intermittent console navigation failures.
Test Plan (AI generated)
bun lintbunx vitest run tests/auth-sso-provisioning.unit.test.tsbun run cli:build && vue-tsc --noEmitGenerated with AI
Summary by CodeRabbit
Release Notes