Conversation
Request measured quota summaries before falling back to model quotas and reuse the local/CLI parser, preserving the selected OAuth account identity. Keep grouped snapshots through the OAuth strategy and honor explicit bucket cadence, including weekly-only Starter allowances. Deduplicate quota requests and snapshot validation without growing production code. Add synthetic parity, fallback, authentication, and cancellation tests. Refs #2427, #3789, #3790.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 28, 2026, 1:05 AM ET / 05:05 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch tries grouped Antigravity quotas for the selected OAuth account, shares the local and CLI summary parser, honors explicit bucket cadence, and updates tests and documentation. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 3 items remain This PR remains useful, but a summary-only HTTP 401 still blocks model quotas that the selected OAuth token can fetch. Grouped OAuth responses have also been tested only with synthetic data; current main and v0.68.0 do not provide the proposed behavior. Priority: P2 Review scores
Verification
How this fits togetherCodexBar fetches Antigravity usage from the selected Google OAuth account or local Antigravity sources. It converts returned quotas into usage windows for the menu and history views. flowchart LR
A[Selected OAuth account] --> B[OAuth quota request]
B --> C{Measured groups returned?}
C -->|Yes| D[Shared summary parser]
C -->|No| E[Model quota request]
D --> F[Account usage windows]
E --> F
F --> G[Menu and history]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep explicit OAuth account-scoped, try the established model endpoint when only the optional summary endpoint returns 401, and verify a measured grouped response before describing grouped OAuth quotas as observed behavior. Do we have a high-confidence way to reproduce the issue? Yes for the proposed patch: its injected transport supplies a summary-only 401 and a successful model response, while source shows the fetch throws before requesting models. No live account run was performed. Is this the best way to solve the issue? No. The shared parser and selected-account identity are appropriate, but the optional request must preserve the existing same-token model route and its grouped-response claim needs observed support. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 579f68406855. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
OAuth skipped Antigravity's grouped quota-summary endpoint and its strategy treated a snapshot without per-model rows as identity-only. Request measured grouped quotas first, reuse the local/CLI parser, and preserve grouped snapshots through the OAuth strategy. Explicit bucket cadence now takes precedence over legacy names, including weekly-only Starter allowances.
The selected OAuth account supplies the email and plan. The optional summary request has a two-second timeout cap; unsupported, unmeasured, and legacy model-bucket responses retain the existing model fallback. HTTP 401 and cancellation propagate. Production code decreases by 12 lines through shared request construction, shared validation, and removal of a handwritten memberwise initializer.
This is a partial repair of the reported cases. CLI print reports still contain no account identity, and explicit OAuth retains its existing source authority. No live Antigravity account was configured for verification.
Verification
swift build --jobs 2 --product CodexBarCore: passed.ProviderArchitectureGatekeeperTests.swift test --jobs 2 --filter ...stalled while rebuilding the app target. The successful run used the same committed test sources with Swift Testing, Swift 6 strict concurrency, SwiftPM's rebuilt core library and unchanged testable app/CLI/widget objects. Command:SWIFT_TESTING=1 PACKAGE_RESOURCE_BUNDLE_PATH="$PWD/.build/out/Products/Debug" .build/out/Products/Debug/AntigravityLanePackageTests --filter "$(cat /tmp/antigravity-2-selected-test-filter.txt)", after sourcingScripts/test_environment.shand removing inherited Antigravity credentials and screenshot-output settings.TMPDIR="$PWD/.build/verification-tmp" make check: exit 0. SwiftFormat:0/2672 files require formatting, 6 files skipped.SwiftLint:Found 0 violations, 0 serious in 2671 files.Earlier attempts hit process-cleanup fixture timing failures; the final 102-test helper run passed with one skip.The first CI run failed on two obsolete gatekeeper anchors after duplicate family classification was removed. Commit
883b6f549bb5removes only those stale entries; the remaining classifier anchors and all gatekeeper tests pass locally. The CI retry passed on exact head883b6f549bb5c037e1e3784880e0b7d0ac51e2c7.Refs #2427
Refs #3789
Refs #3790