Cursor menu-bar layout cannot select the Cursor usage lane
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
- Enable Cursor and refresh until the Total, Cursor, and Third Party rows appear.
- Open Settings > Menu Bar > Layout.
- Select Cursor as the layout scope.
- Add
IconandAuto %. The menu bar shows the most-used lane. - Replace
Auto %withWeekly %. The menu bar showsW –.
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
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:
- Layout token surface: The persisted percentage-token enum contains only session, weekly, scoped-weekly, and automatic cases; it has no direct provider-lane selection. (
Sources/CodexBar/MenuBarLayout.swift:4, 94985a405bed) - Semantic-window limitation: The standard resolver recognizes sessions only from 1–12 hour windows and weekly only from exactly seven days, so monthly Cursor lanes resolve to neither token. (
Sources/CodexBarCore/Providers/ProviderUsagePresentation.swift:593, 94985a405bed) - Cursor lane contract: Cursor already exposes primary, secondary, and tertiary menu-bar metrics and labels them Total, Cursor, and Third Party; its automatic resolver deliberately selects the most constrained usable lane. (
Sources/CodexBarCore/Providers/Cursor/CursorProviderDescriptor.swift:27, 94985a405bed) - Existing behavior coverage: Current tests establish that Cursor automatic selection chooses the highest lane, including tertiary, confirming that Auto % is not a direct Cursor-lane selector. (
Tests/CodexBarTests/StatusItemAnimationTests.swift:618, 94985a405bed) - Release and current-main check: v0.53.0 contains the same affected source: main differs from that release only in CHANGELOG.md, so no post-release implementation has addressed this behavior. (
CHANGELOG.md, 94985a405bed) - History provenance: Available blame attributes the current token and Cursor descriptor lines to the v0.53.0 source snapshot; no later source change exists on main. (
Sources/CodexBar/MenuBarLayout.swift:4, 5a2a70458d95)
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-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.