Count all enabled providers in Overview spend - #3063
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 11:51 PM ET / August 19, 2026, 03:51 UTC. ClawSweeper reviewWhat this changesThe PR keeps Overview limited to six provider cards while calculating spend totals and coverage from every enabled, inline-eligible provider. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: the focused fix correctly separates compact Overview cards from spend accounting, with a regression test and direct redacted app proof. No actionable patch defect was found. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherCodexBar builds the merged Overview menu from enabled provider status data and user display preferences. It renders a compact card set while aggregating eligible provider cost snapshots into a spend summary. flowchart LR
A[Enabled providers] --> B[Overview scope selection]
C[Card display preferences] --> B
B --> D[Six visible cards]
B --> E[Spend accounting roster]
F[Provider cost snapshots] --> G[Spend summary]
E --> G
G --> H[Overview menu]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Land the narrow roster separation once required checks complete, preserving six visible cards while reporting spend coverage across all enabled eligible providers. Do we have a high-confidence way to reproduce the issue? Yes—current-main source passes the capped six-card selection into spend accounting, and the branch regression constructs a seventh enabled provider excluded by that path. Is this the best way to solve the issue? Yes—the patch preserves the established compact-card behavior while using the full enabled roster only for spend accounting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a32989c750e6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Exact-head CI is terminal green on |
Summary
Root cause
The Overview menu reused its six-provider card selection as the spend input list. Any enabled provider outside that compact selection was silently excluded from both the subtotal and the
x of ycoverage denominator.User impact
Users can keep a compact six-card Overview while the spend summary accounts for every enabled provider. Providers without a valid current-config cost snapshot remain in the denominator but do not enter the known subtotal.
Fresh app proof
This redacted capture comes from the freshly packaged branch app. It shows all seven enabled provider tabs, the six-card Overview selection, and
1 of 7 subscriptions have spend. Exact spend, token volume, and account identity are redacted. The app binary was built fromeff754f2e6a7; current head0d75f17d0e76adds only this proof image.Hosted behavior proof
The hosted macOS runner built the branch and executed the actual AppKit menu integration on commit
94399ec56d32. The only later production change is the three-line gatekeeper-anchor realignment ineff754f2e6a7;0d75f17d0e76adds only the proof image above.macOS shard transcript
That integration renders the real menu and asserts exactly six
overviewRow-*items, while the hidden seventh provider contributes to the exact$85.00subtotal and the summary reports3 of 7coverage. It also proves a disabled provider is excluded and duplicate accounting inputs are stable-deduplicated.Validation
1 of 7spend coverageswift build --target CodexBarCoregit diff --checkPreviewsMacrosin the KeyboardShortcuts dependency; hosted Xcode/macOS CI is authoritativeFollow-up to #3054 and the provider-coverage behavior discussed in #2695.