Notion AI Monthly usage shows “–” in Menu Bar Layout while Monthly is available in dropdown
Summary
Notion AI usage is fetched correctly: the dropdown card shows valid Rolling and Monthly percentages. However, the Menu Bar Layout cannot display the Monthly percentage.
Adding the Weekly % token for the Notion AI provider renders W –, even though Monthly data is present in the same snapshot.
Steps to reproduce
- Enable the Notion AI provider for a Business or Enterprise workspace.
- Refresh usage and confirm that the CodexBar dropdown shows both:
- Rolling
- Monthly
- Open Settings → Menu Bar → Layout.
- Select the Notion AI provider scope.
- Add the Weekly % token (the available secondary long-term usage token).
Actual behavior
The Menu Bar displays:
W –
The Monthly percentage remains visible and valid in the dropdown.
Expected behavior
The Notion billing-period window should be displayable in the Menu Bar.
Ideally, for Notion:
Session % → Rolling 6-hour usage
Weekly % → Monthly billing-period usage
The prefix should preferably be M rather than W, or the layout editor could expose a provider-aware Monthly % token.
Technical details
NotionUsageSnapshot.toUsageSnapshot() maps billingPeriodWindow to snapshot.secondary and marks it with ProviderPaceCapability.monthlyWindowSentinelMinutes.
The dropdown uses this secondary window directly, so Monthly renders correctly there.
The new Menu Bar Layout instead resolves semantic windows through ProviderUsagePresentation.standardSemanticWindows, where the weekly window is selected only when:
window.windowMinutes == 7 * 24 * 60
As a result, Notion's monthly secondary window is discarded, and MenuBarLayoutRenderer displays the missing-value dash.
Relevant flow:
NotionUsageSnapshot.toUsageSnapshot()→ Monthly stored assnapshot.secondaryMenuBarLayoutSemanticWindowResolver.windows()→ calls providersemanticWindows- default
standardSemanticWindows()→ accepts only an exact 7-day weekly window - Menu Bar
Weekly %→ receivesniland renders–
A provider-specific semanticWindowResolver for Notion could map:
session → snapshot.primary
weekly/secondary semantic slot → snapshot.secondary
Alternatively, adding a distinct monthly semantic window/token would avoid overloading Weekly.
Environment
- macOS
- CodexBar release with Notion AI support
- Notion Business/Enterprise workspace
- Monthly data visible in the dropdown
Workaround
None for the Menu Bar. Auto % / Session % shows the Rolling window, while Monthly is only available after opening the dropdown.
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 8, 2026, 6:58 PM ET / 22:58 UTC.
Summary Current main still drops Notion’s monthly secondary window from the menu-bar layout. The linked open PR directly owns the repair, so this issue remains necessary until that implementation and its labeling contract are resolved.
Reproducibility: yes. —source inspection gives a high-confidence path: a Notion monthly secondary window is rejected by the exact-seven-day resolver, leaving the layout’s secondary token empty.
Maintainer decision needed
| Question | Recommendation |
|---|---|
| Should Notion’s existing persisted secondary token display the billing period as Monthly throughout the renderer, accessibility text, and editor rather than only making a value appear under a generic Weekly token? | Adopt provider-aware Monthly labels: Keep stored tokens compatible while rendering and announcing the Notion secondary slot as Monthly. |
Why: The current defect is clear, but the linked PR and contributor discussion identify the visible and saved-token labeling contract as a user-facing decision.
Next step An open linked PR already owns the repair, so a separate automated fix branch would duplicate active work.
Review details
Best possible solution:
Preserve saved layout tokens while adding a provider-specific Notion mapping that displays the billing-period slot consistently as Monthly across rendering, accessibility, and the scoped editor.
Do we have a high-confidence way to reproduce the issue?
Yes—source inspection gives a high-confidence path: a Notion monthly secondary window is rejected by the exact-seven-day resolver, leaving the layout’s secondary token empty.
Is this the best way to solve the issue?
Unclear until the labeling contract is decided; the linked PR’s provider-specific mapping is the narrowest repair if it also keeps Notion’s Monthly terminology accurate.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- The open PR needs a maintainer decision on whether the compatibility-preserving secondary token must render consistently as Monthly in the editor, visible title, pace label, and accessibility output.
Codex review notes: model internal, reasoning high; reviewed against 617c292f650a.
Label changes
Label justifications:
P2: This is a bounded display defect with the monthly value still available in the dropdown.impact:ux-friction: Users cannot place a valid Notion monthly value in their configured menu-bar layout.
Evidence reviewed
What I checked:
- Current semantic mapping: The layout delegates to provider semantic windows, while the default weekly lane accepts only an exact seven-day window; Notion’s monthly secondary window cannot populate it on current main. (
Sources/CodexBarCore/Providers/ProviderUsagePresentation.swift:580, 617c292f650a) - Notion snapshot shape: Notion stores its billing-period percentage in snapshot.secondary with the shared monthly sentinel, and its descriptor calls that provider window Monthly. (
Sources/CodexBarCore/Providers/Notion/NotionUsageSnapshot.swift:175, 617c292f650a) - Renderer confirms the labeling gap: The current secondary layout token always renders and announces Weekly, so mapping the value alone would leave Notion’s billing period inaccurately labeled. (
Sources/CodexBar/MenuBarLayoutRenderer.swift:270, 617c292f650a) - Open implementation candidate: Provided GitHub context identifies https://github.com/steipete/CodexBar/pull/2727 as an open, clean PR with closing syntax that directly addresses this issue’s mapping and labeling behavior.
- Feature history: Blame assigns the current semantic resolver to Peter Steinberger, and the immediately preceding provider-presentation refactors were also authored by Peter Steinberger. (
Sources/CodexBar/MenuBarLayout.swift:29, 371c822dfa0f) - Maturity classification unavailable: The required shortlist helper could not find qa/maturity-scores.yaml in this checkout, so no maturity label is selected.
Likely related people:
- Peter Steinberger: Current semantic-window wiring and recent provider-presentation refactors are attributed to this author in local history. (role: recent area contributor; confidence: high; commits: 371c822dfa0f, fb66e63e8719, 61fbe9fac507; files:
Sources/CodexBar/MenuBarLayout.swift,Sources/CodexBarCore/Providers/ProviderUsagePresentation.swift,Sources/CodexBarCore/Providers/Notion/NotionProviderDescriptor.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.
The PR review correctly caught that the existing secondary token would render Notion's billing period as W and announce it as “Weekly.” That conflicts with this issue's current queueable scope, which treats provider-aware Monthly labeling as a separate refinement.
I don't want to broaden #2727 into renderer, accessibility, and saved-token behavior without a maintainer decision. Should this issue accept the visibility-only fix as currently scoped, or should correct M/“Monthly” rendering be required in the same repair? I can update the PR once that contract is settled. I also can't provide real-account proof without a test workspace, but I can add renderer-level before/after proof after the label behavior is decided.