Widget cost rows wrap awkwardly with large token counts
Description
In the medium desktop widget, the Today API est. and 30d API est. rows wrap awkwardly when usage values are large. The left metadata and right value columns wrap independently, so min. ago and tokens fall onto separate lines and the rows become difficult to scan.
Steps to reproduce
- Add the medium CodexBar widget to the macOS desktop.
- Select Codex and enable local cost/token estimates.
- Accumulate large token counts (for example, tens of millions today and billions over 30 days).
Expected behavior
The label, recency, cost, and token count remain visually aligned within the available width.
Actual behavior
Both columns wrap independently, producing uneven multi-line rows and a visually unbalanced layout.
Possible UI directions
- Abbreviate large token values (for example, 94.5M and 10.6B).
- Use an adaptive grid or a fixed value column.
- Keep the primary value on one line with scaling/truncation, or switch to a vertical row layout at constrained widths.
Environment
- CodexBar 0.44.0 (106)
- macOS 27.0 (26A5378n)
- Widget: medium desktop widget
Screenshot
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 18, 2026, 9:45 PM ET / July 19, 2026, 01:45 UTC.
Summary Keep open for UI triage: the report describes a concrete medium-widget readability regression, but selecting the responsive layout and token-abbreviation behavior needs current implementation review and a small design decision.
Reproducibility: unclear. The report gives credible manual steps and a screenshot, but a current-main widget build with large local estimate values was not available for verification in this review.
Ways to help us reproduce this
- Add expected vs actual behavior.
- Share version, platform, channel/provider, and relevant config details.
Next step A maintainer should select the compact-width presentation contract before a focused UI fix is prepared; current source and history could not be inspected safely in this review environment.
Maintainer decision needed
- Question: Which medium-widget behavior should be the supported narrow-width contract for large token estimates: abbreviated single-line values, a fixed/adaptive value column, or a deliberate vertical fallback?
- Rationale: The report identifies the visual failure but presents several valid UX directions; selecting one affects widget readability, localization headroom, and future formatting consistency.
- Likely owner: steipete — Repository ownership is the only available routing signal while local history inspection is unavailable.
- Options:
- Abbreviate and preserve one line (recommended): Format large token totals with compact units and give the primary cost/value line priority within the existing two-column row.
- Adopt an adaptive grid: Keep detailed token values when width permits, but use explicit column priorities or a vertical fallback at constrained widths.
- Keep current formatting: Decline the layout change and document the existing wrapping as an accepted compact-widget trade-off.
Review details
Best possible solution:
Adopt one responsive medium-widget row layout that preserves a stable primary value line, abbreviates large token counts consistently, and adds focused coverage for the constrained-width presentation model.
Do we have a high-confidence way to reproduce the issue?
Unclear. The report gives credible manual steps and a screenshot, but a current-main widget build with large local estimate values was not available for verification in this review.
Is this the best way to solve the issue?
Unclear. A responsive layout fix is appropriate, but the repository needs to choose one supported compact-width behavior before implementation.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- The correct constrained-width behavior is not yet established: abbreviating token counts, prioritizing the value column, or switching to a vertical layout have different readability and localization trade-offs.
Codex review notes: model internal, reasoning high; reviewed against 242469b5b23e.
Label changes
Label changes:
- add
P2: This is a concrete widget readability problem with limited blast radius rather than a blocked setup or core-runtime failure. - add
impact:ux-friction: Large usage estimates make an existing widget row difficult to scan but do not prevent the user from accessing usage information. - add
issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label. - add
clawsweeper:needs-info: Current issue advisory state selects this label. - add
clawsweeper:no-new-fix-pr: 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 concrete widget readability problem with limited blast radius rather than a blocked setup or core-runtime failure.impact:ux-friction: Large usage estimates make an existing widget row difficult to scan but do not prevent the user from accessing usage information.
Evidence reviewed
What I checked:
- Concrete user report: The report supplies a specific affected surface, setup path, expected visual result, observed independent wrapping, and a screenshot from CodexBar 0.44.0 (106).
- Repository policy applied: The target AGENTS.md requires focused UI verification against the freshly built bundle when runtime behavior is changed and favors stable state/model seams for tests where possible. (
AGENTS.md:1, 242469b5b23e) - Current-main inspection unavailable: Read-only shell inspection could not start because the sandbox failed before executing commands, so current widget source, tests, history, and release inclusion could not be verified; this review therefore does not claim the issue is already fixed.
Likely related people:
- steipete: The repository is owned by this account; without executable repository-history inspection, this is the only evidence-backed routing candidate for the widget-layout decision. (role: likely UI decision owner; confidence: low)
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.