CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Show personal on-demand spend alongside team pool for Cursor team plans

Open yashiels opened this issue 5 months ago • 1 comments

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.

yashiels avatar Jun 18 '26 12:06 yashiels

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:

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-review comments, 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-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to 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 explain to ask for more context, or @clawsweeper stop to stop active automation.

clawsweeper[bot] avatar Jun 18 '26 12:06 clawsweeper[bot]