Improve visual hierarchy in Codex limit reset credit section
Issue
Hi there, had a polish request for the look of the Codex limit reset credit section.
Though the string showing the number of resets remaining is vertically aligned by bottom with the section header, the difference in font size is visually unsettling.
The two smaller text sections being both right and below the section header lead to a lack of visual hierarchy that makes skimming take just a bit longer, especially because the current layout fails to highlight the actual number of remaining resets.
Proposed fix
- Move the number of limit resets below the section header, either to the right of or below the next limit expiration
- Change the color, place a badge around, or increase the size of the actual number of remaining resets
Current layout
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 30, 2026, 3:52 AM ET / 07:52 UTC.
Summary Keep open: current main and v0.37.2 still render the Codex reset-credit count as small secondary trailing text beside the section title, so the visual hierarchy polish request remains valid and tightly scoped.
Reproducibility: yes. Source inspection confirms the reported layout: the reset count is a small secondary footnote on the title row and the expiry detail sits below.
Next step The affected SwiftUI view and focused tests make this a narrow UI polish candidate with no provider/auth behavior changes.
Review details
Best possible solution:
Update CodexResetCreditsContent so the available reset count becomes a primary visual element near the expiry detail, without changing Codex OAuth fetching, reset-credit data models, redemption, or settings policy.
Do we have a high-confidence way to reproduce the issue?
Yes. Source inspection confirms the reported layout: the reset count is a small secondary footnote on the title row and the expiry detail sits below.
Is this the best way to solve the issue?
Yes. The narrow maintainable path is a local SwiftUI composition change with focused menu-card/model coverage, not provider/auth or reset-credit data-model changes.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- The visual treatment should preserve compact menu width, localization resilience, highlighted-state contrast, and the combined accessibility label.
Codex review notes: model internal, reasoning high; reviewed against f5340ad62732.
Label changes
Label justifications:
P3: This is a low-risk UI polish request for an existing Codex reset-credit section, not an urgent broken workflow.impact:other: The issue affects how quickly users can identify available expiring reset credits in the Codex menu, which is meaningful UI impact outside the specific owned categories.
Evidence reviewed
Acceptance criteria:
- swift test --filter CodexResetCreditsMenuCardTests
- swift test --filter MenuCardHeightFingerprintTests
- make check
What I checked:
- Current reset-credit layout: CodexResetCreditsContent still uses a first-baseline HStack with the title, Spacer, and reset-count Text styled as footnote secondary text; the expiry detail is another footnote below it. (
Sources/CodexBar/MenuCardView+CodexResetCredits.swift:11, f5340ad62732) - Current menu insertion point: The reset-credit content is already isolated below usage metrics, so the requested fix can stay local to the existing menu-card subsection. (
Sources/CodexBar/MenuCardView.swift:552, f5340ad62732) - Focused test seam: CodexResetCreditsMenuCardTests already covers the generated reset-count and expiry strings, giving a narrow test seam for behavior-sensitive coverage around the section. (
Tests/CodexBarTests/CodexResetCreditsMenuCardTests.swift:42, f5340ad62732) - Latest release check: The v0.37.2 release version of the same view still has the HStack/Spacer/footnote reset-count layout, so the latest release does not implement this polish request. (
Sources/CodexBar/MenuCardView+CodexResetCredits.swift:11, f380287041b8) - History provenance: Blame maps the current reset-credit view and focused tests to the v0.37.2 release commit, while the merged reset-credit feature PR introduced the row and test surface being refined here. (
Sources/CodexBar/MenuCardView+CodexResetCredits.swift:11, f380287041b8) - Vision fit: VISION.md names provider limits, credits, status, and reset windows as core UI scope and lists small UI or UX tweaks under merge-by-default work. (
VISION.md:3, f5340ad62732)
Likely related people:
- steipete: Current-main blame maps the reset-credit view and tests to the v0.37.2 release commit, and the merged reset-credit PR includes a hardening commit co-authored by this account. (role: recent area contributor and release owner; confidence: high; commits: f380287041b8, 57170e008edb, a3ea16743560; files:
Sources/CodexBar/MenuCardView+CodexResetCredits.swift,Sources/CodexBar/MenuCardView.swift,Tests/CodexBarTests/CodexResetCreditsMenuCardTests.swift) - rogdex24: Authored the merged reset-credit display PR that introduced the reset-credit menu row, count text, expiry detail, CLI output, and focused tests that this issue asks to refine. (role: feature implementer; confidence: high; commits: a3ea16743560, 1ae28cfd50eb, cbd89aa02b89; files:
Sources/CodexBar/MenuCardView+CodexResetCredits.swift,Sources/CodexBar/MenuCardView.swift,Tests/CodexBarTests/CodexResetCreditsMenuCardTests.swift) - brahimhamichan: Opened the broader reset-credit menu PR that touches the same reset-credit view and related menu paths, although that PR is about redemption and notifications rather than this visual hierarchy request. (role: adjacent follow-up contributor; confidence: medium; commits: f84a022d0452; files:
Sources/CodexBar/MenuCardView+CodexResetCredits.swift,Sources/CodexBar/StatusItemController+CodexResetCredits.swift,Tests/CodexBarTests/CodexResetCreditsMenuCardTests.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.
Revision to proposed fix: in order to avoid the same issue of confused visual hierarchy, make the string inclduing the remaining limit number bolder than the time til expiration