Show extra-usage spend text in menu bar for Claude/Cursor#1107
Conversation
|
Codex review: needs maintainer review before merge. Latest ClawSweeper review: 2026-05-22 17:48 UTC / May 22, 2026, 1:48 PM ET. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: not applicable. as a bug reproduction; this is a feature PR. Source inspection shows current main already supports Cursor/Claude Extra usage as a percent metric, and this branch adds the requested currency text path. PR rating Rank-up moves:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the display-layer change after CI or maintainer validation, preserving the existing percent fallback when cost data is absent and resolving #1084. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction; this is a feature PR. Source inspection shows current main already supports Cursor/Claude Extra usage as a percent metric, and this branch adds the requested currency text path. Is this the best way to solve the issue? Yes. The branch keeps the change in menu-bar display logic, reuses existing Label justifications:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 17b065100a44. |
|
ClawSweeper PR egg ✨ Hatched: 💎 rare Frosted Test Hopper Hatch commandComment Hatchability rules:
Rarity: 💎 rare. What is this egg doing here?
|
|
Added runtime proof to the PR body. The focused test exercises the actual menu-bar display path: and asserts: This verifies the PR returns currency spend text for Cursor , plus Claude currency text and percent fallback coverage. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Added runtime proof to the PR body. The focused test exercises the actual menu-bar display path:
and asserts:
This verifies the PR returns currency spend text for Cursor @clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. Re-review progress:
|
|
Added real macOS menu-bar visual proof for PR #1107. The attached screenshot shows:
This supplements the existing focused tests for:
Temporary local-only debug overrides were used only to provide deterministic proof data and were reverted. No tracked source changes remain. @clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. Re-review progress:
|
|
This screenshot shows:
Captured from PR branch codex/1084-menu-bar-extra-usage-spend-text at commit 43c8a2f. Temporary local-only debug overrides were used only to provide deterministic proof data and were reverted. No tracked proof-override source changes remain. @clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
43c8a2f to
965ff9b
Compare
Fixes
Fixes #1084 — show money spend in the macOS menu bar.
Summary
MenuBarMetricPreference.extraUsagefor a display-only menu-bar enhancement.extraUsageis selected andsnapshot.providerCostis usable (limit > 0), render formatted spend text, for example$12.34Scope
Validation
swift test --filter StatusItemExtraUsageMetricTestsswift test --filter MenuBarMetricWindowResolverTestsmake checkgit diff --checkRuntime proof
Visual runtime proof
Added a redacted macOS screenshot showing the actual menu bar rendering
$12.34for Cursor Extra usage.The CodexBar menu is open in the same screenshot and shows Cursor → Extra usage →
Monthly: $12.34 / $100.00, confirming the menu-bar text corresponds to Cursor Extra usage spend.The visual proof was captured from:
Temporary local-only debug overrides were used only to provide deterministic proof data for the visual capture and were reverted before final git status. No tracked source changes remain.