Repository navigation
fix(codex): count per-account homes in usage and state removal blast radius - #9763
Conversation
…radius - usage scanner now includes codex-accounts/*/home/sessions so multi-account usage is no longer silently undercounted (audit F2) - account-removal dialog copy now states that session history and MCP logins are permanently deleted with the managed home (audit F1 mitigation)
|
Warning Review limit reached
Next review available in: 13 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughPer-account Codex homes are now scanned for existing 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
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 |
…radius (#9763) * fix(codex): count per-account homes in usage and state removal blast radius - usage scanner now includes codex-accounts/*/home/sessions so multi-account usage is no longer silently undercounted (audit F2) - account-removal dialog copy now states that session history and MCP logins are permanently deleted with the managed home (audit F1 mitigation) * fix(codex): harden account usage discovery
…radius (stablyai#9763) * fix(codex): count per-account homes in usage and state removal blast radius - usage scanner now includes codex-accounts/*/home/sessions so multi-account usage is no longer silently undercounted (audit F2) - account-removal dialog copy now states that session history and MCP logins are permanently deleted with the managed home (audit F1 mitigation) * fix(codex): harden account usage discovery
Summary
Two fixes from the codex-home architecture audit ahead of the v1.4.149 stable debut:
getCodexSessionDirectories()only scanned the shared runtime mirror and the real~/.codex, so all sessions written to per-account self-contained homes (codex-accounts/<id>/home/sessions) were silently missing from usage. Now enumerated from disk via a newcodex-account-home-discoverymodule (disk-based so rollouts retained after account changes still count, and CLI callers need no settings store; existing inode-alias dedup covers hardlinked duplicates).rmSyncs the only on-disk copy of that account's session history and MCP credentials. The confirm dialog copy predated this and described deleting disposable auth state. It now states the real, irreversible blast radius. (Removal-impact counts + live-session guard tracked as a follow-up — needs a new cross-runtime RPC surface.)Validation
pnpm run typechecknode config/scripts/verify-localization-catalog.mjs(full key parity, all locales)pnpm run check:max-lines-ratchet