CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Cursor menu-bar layout cannot select the Cursor usage lane

Open giuseppebisemi opened this issue 3 months ago • 1 comments

What happened

I wanted Cursor's menu-bar item to show the Cursor usage lane (9%) instead of Third Party (17%). The current layout editor cannot select that lane.

The snapshot in this case was:

  • Total: 10% used
  • Cursor: 9% used
  • Third Party: 17% used

With a Cursor-specific layout, Auto % showed 17%. Replacing it with Weekly % produced W – rather than 9%.

Steps to reproduce

  1. Enable Cursor and refresh until the Total, Cursor, and Third Party rows appear.
  2. Open Settings > Menu Bar > Layout.
  3. Select Cursor as the layout scope.
  4. Add Icon and Auto %. The menu bar shows the most-used lane.
  5. Replace Auto % with Weekly %. The menu bar shows W –.

Why it happens

The layout editor offers time-based tokens (Session %, Weekly %, and Auto %), but Cursor reports three lanes on the same monthly billing cycle:

  • primary: Total
  • secondary: Cursor
  • tertiary: Third Party

ProviderUsagePresentation.standardSemanticWindows only treats windows lasting 1–12 hours as sessions and windows lasting exactly seven days as weekly. Neither token can represent Cursor's monthly lanes. Auto % works, but Cursor's automatic resolver picks the most-used usable lane, which was Third Party in this case.

The old MenuBarMetricPreference.secondary still selects the Cursor lane correctly. Saving a custom layout takes precedence over that preference, so the old behavior is no longer available in the UI.

Expected behavior

A Cursor-specific layout should let users choose Total %, Cursor %, or Third Party % directly.

One option is to add primary, secondary, and tertiary percentage tokens, then label them with each provider's existing row names. Session and Weekly can stay as semantic time-window tokens for providers that report those windows.

Environment

  • CodexBar 0.53.0 (build 125)
  • macOS 26.5.2 (25F84)
  • Cursor Pro

giuseppebisemi avatar Aug 18 '26 11:08 giuseppebisemi

Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 18, 2026, 7:35 AM ET / 11:35 UTC.

Summary Keep open: current main and v0.53.0 still lack direct custom-layout tokens for Cursor’s named lanes; the semantic time-window tokens cannot represent the reported monthly lanes.

Reproducibility: yes. from source: apply a Cursor-specific custom layout containing Weekly % to a snapshot whose three lanes have monthly duration; the semantic resolver produces no weekly window, while Auto % selects the highest usable lane.

Next step The affected model, descriptor metadata, renderer data, and focused validation seams are identified; no product or security decision is needed.

Review details

Best possible solution:

Add direct primary, secondary, and tertiary percentage tokens to provider-scoped layouts, label them through existing provider metadata, and retain Session, Weekly, Scoped Weekly, and Auto as cadence/selection semantics.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: apply a Cursor-specific custom layout containing Weekly % to a snapshot whose three lanes have monthly duration; the semantic resolver produces no weekly window, while Auto % selects the highest usable lane.

Is this the best way to solve the issue?

Yes. Direct lane tokens are narrower than redefining Session or Weekly, whose cadence-based semantics are shared across providers.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • The repair must preserve decoding of existing saved layouts and avoid presenting unavailable direct-lane choices in global layouts.

Codex review notes: model internal, reasoning high; reviewed against 94985a405bed.

Label changes

Label changes:

  • add P2: A custom Cursor layout cannot select a valid reported lane, with a limited provider-specific blast radius.
  • add impact:ux-friction: Users can view Cursor usage but must abandon a custom layout to preserve their intended lane selection.
  • 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:queueable-fix: Current issue advisory state selects this label.
  • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

Label justifications:

  • P2: A custom Cursor layout cannot select a valid reported lane, with a limited provider-specific blast radius.
  • impact:ux-friction: Users can view Cursor usage but must abandon a custom layout to preserve their intended lane selection.
Evidence reviewed

Acceptance criteria:

  • swift test --filter MenuBarLayoutTests
  • swift test --filter MenuBarLayoutRendererTests
  • make test
  • make check

What I checked:

Likely related people:

  • Peter Steinberger: Available blame attributes the current layout-token and Cursor descriptor snapshot to the v0.53.0 source commit. (role: recent area contributor; confidence: medium; commits: 5a2a70458d95; files: Sources/CodexBar/MenuBarLayout.swift, Sources/CodexBarCore/Providers/Cursor/CursorProviderDescriptor.swift)
  • Kiran Magic: The available shortlog shows repeated contributions across the central layout and Cursor descriptor paths, though the local historical objects are incomplete. (role: historical area contributor; confidence: low; files: Sources/CodexBar/MenuBarLayoutEditor.swift, Sources/CodexBarCore/Providers/Cursor/CursorProviderDescriptor.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 Aug 18 '26 11:08 clawsweeper[bot]