Show personal on-demand spend alongside team pool for Cursor team plans
For Cursor team plans, the usage summary payload includes both the shared team on-demand pool (teamUsage.onDemand) and the individual member's own on-demand spend (individualUsage.onDemand), which typically has no personal limit.
Currently, CodexBar's Cursor provider surfaces only the team on-demand pool as the headline budget and drops the member's personal spend. This issue proposes showing the individual member's spend ("Your spend") directly under the team pool in the cost view so users can track their own contribution to the shared team budget.
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 18, 2026, 8:38 AM ET / 12:38 UTC.
Summary Keep open: current main still drops the member-specific Cursor on-demand spend when the shared team pool is the displayed budget, and an open linked PR is already the implementation candidate. This issue should close after that PR merges or if maintainers choose a different canonical fix.
Reproducibility: yes. Current main parses individual and team on-demand fields separately, then resolves providerCost to a single used/limit pair and the menu model renders only one spend line.
Next step An open PR already references and implements this request, so ClawSweeper should not queue a competing fix PR.
Review details
Best possible solution:
Review the linked Cursor implementation PR and land it if the parser, shared cost model, UI rendering, localization, and tests are acceptable.
Do we have a high-confidence way to reproduce the issue?
Yes. Current main parses individual and team on-demand fields separately, then resolves providerCost to a single used/limit pair and the menu model renders only one spend line.
Is this the best way to solve the issue?
Likely yes. Extending the shared provider-cost model and existing cost section is the narrow maintainable direction, but the linked PR still needs normal maintainer review before merge.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- The linked PR is still unmerged; until it lands, current main does not show the requested personal spend line.
Codex review notes: model internal, reasoning high; reviewed against d8ce86980772.
Label changes
Label changes:
- add
P2: This is a normal provider-spend visibility improvement with limited blast radius. - add
impact:other: The issue affects Cursor team-plan cost visibility, which is maintainer-visible provider behavior outside the narrower owned impact classes. - add
issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label. - add
clawsweeper:source-repro: Current issue advisory state selects this label. - add
clawsweeper:linked-pr-open: Current issue advisory state selects this label. - add
clawsweeper:no-new-fix-pr: Current issue advisory state selects this label. - add
clawsweeper:fix-shape-clear: Current issue advisory state selects this label. - add
clawsweeper:needs-maintainer-review: Current issue advisory state selects this label. - add
clawsweeper:needs-product-decision: Current issue advisory state selects this label.
Label justifications:
P2: This is a normal provider-spend visibility improvement with limited blast radius.impact:other: The issue affects Cursor team-plan cost visibility, which is maintainer-visible provider behavior outside the narrower owned impact classes.
Evidence reviewed
Acceptance criteria:
- swift test --filter CursorEnterpriseUsageTests
- make test
- make check
What I checked:
- Repository policy read: The full AGENTS.md was read from disk and its provider/parser testing and provider-data-silo guidance applies to this Cursor usage review. (
AGENTS.md:1, d8ce86980772) - Vision fit: VISION.md defines CodexBar as a control surface for provider limits, credits, and spend, while marking new features as sign-off work. (
VISION.md:3, d8ce86980772) - Current model lacks a second spend value: ProviderCostSnapshot currently carries one used/limit/currency tuple plus period/reset metadata, with no field for the member's personal on-demand spend alongside the team pool. (
Sources/CodexBarCore/ProviderCostSnapshot.swift:4, d8ce86980772) - Current Cursor snapshot drops the personal spend in team-pool mode: toUsageSnapshot chooses a single resolved on-demand pair; when no personal cap exists and a team limit exists, it builds ProviderCostSnapshot from teamOnDemandUsed/teamOnDemandLimit only. (
Sources/CodexBarCore/Providers/Cursor/CursorStatusProbe.swift:609, d8ce86980772) - Parser already sees both payload fields: parseUsageSummary reads individualUsage.onDemand and teamUsage.onDemand into separate CursorStatusSnapshot values, so the remaining gap is carrying and rendering both values. (
Sources/CodexBarCore/Providers/Cursor/CursorStatusProbe.swift:1327, d8ce86980772) - Current cost view renders one spend line: ProviderCostSection has one spendLine and providerCostSection formats one monthly used/limit row for capped USD costs. (
Sources/CodexBar/MenuCardView+Costs.swift:279, d8ce86980772)
Likely related people:
- yashiels: Opened the linked PR that says it resolves this issue and implements the requested Cursor personal spend display. (role: linked implementation author; confidence: high; commits: 573fa288c2fe; files:
Sources/CodexBarCore/ProviderCostSnapshot.swift,Sources/CodexBarCore/Providers/Cursor/CursorStatusProbe.swift,Sources/CodexBar/MenuCardView.swift) - steipete: Local blame attributes the Cursor on-demand budget selection, ProviderCostSnapshot shape, and most provider cost rendering to commit 06fea2c897cc75fa10a3a42937af9930bf2fd645. (role: introduced current behavior; confidence: medium; commits: 06fea2c897cc; files:
Sources/CodexBarCore/Providers/Cursor/CursorStatusProbe.swift,Sources/CodexBarCore/ProviderCostSnapshot.swift,Sources/CodexBar/MenuCardView+Costs.swift) - Zayden / 쩨이든: Local blame shows a recent adjacent providerCostSection change for LiteLLM cost behavior. (role: recent adjacent contributor; confidence: low; commits: 05545feba362; files:
Sources/CodexBar/MenuCardView+Costs.swift)
How this review workflow works
- ClawSweeper keeps one durable marker-backed review comment per issue or PR.
- Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
- A fresh review can be triggered by eligible
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch. - PR/issue authors and users with repository write access can comment
@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
- Maintainer-only repair and merge flows require explicit commands such as
@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review. - Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.