Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change keeps ambiguous hub accounts separate during limit collection and provider reporting. It encodes source and account identities, prevents ambiguous credit matching, and adds tests for probe failures and colon-collision identifiers. ChangesHub Account Separation
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Would Approve Macroscope's review found this PR approvable — This is a focused, tested fix to usage-limit account aggregation that preserves distinct same-email proxy subscriptions without schema or deployment changes. An unresolved High-severity comment identifies an identity-key collision edge case that remains a separate blocking correctness concern. Not approved because:
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
Personal and company team subscriptions can share an email address. T3 merged their CLIProxy quota snapshots into one account, hiding a subscription in Limits even with a single environment selected.
Keep distinct hub account IDs separate when a provider/email matches multiple subscriptions. Apply the same ambiguity check to
/usage-limitsand reset-credit routing, including when one account's quota probe fails. Repeated snapshots of the same hub account across environments still merge.Native logins expose no subscription ID, so an ambiguous native login stays separate instead of being assigned to an arbitrary hub account. This can leave a duplicate native entry until stronger identity is available.
Validation: 33 focused usage-limit tests pass, targeted lint passes, and the shared package typecheck passes. Browser-verified against an isolated server with two synthetic same-email Claude accounts: both quota segments survive environment selection, and their popovers show the corresponding values. No browser errors. Screenshots below compare the original merge logic with the fix using the same fixture. No UI component changes.
Implemented by OpenAI Codex in the Codex harness; reviewed with Claude Fable 5.1 through local Claude Code.
Before:
After:
Summary by CodeRabbit