CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Extra black bars on the progress bars

Open evan6seven opened this issue 6 months ago • 2 comments

Image

These showed up a while ago. Version 0.29.0

evan6seven avatar May 25 '26 22:05 evan6seven

Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed May 25, 2026, 7:02 PM ET / 23:02 UTC.

Summary Keep open. The screenshot matches current quota-warning marker rendering rather than an unknown rendering artifact, and there is already a Display toggle to hide those tick marks, but the fresh report may still represent a UX/defaults issue that needs maintainer judgment before changing behavior.

Reproducibility: yes. source-reproducible: with quota warning markers visible and default thresholds [50, 20], used-percent mode renders ticks at 50% and 80%, matching the screenshot. A live bundle reproduction was not run because this review is read-only.

Next step This is not a safe autonomous fix lane because the remaining choice is whether to keep, soften, or change the default marker behavior.

Review details

Best possible solution:

Have maintainers decide whether to treat the current visible-by-default tick marks as expected behavior, restyle them to read less like artifacts, or make them opt-in while preserving the existing warning-notification controls.

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

Yes, source-reproducible: with quota warning markers visible and default thresholds [50, 20], used-percent mode renders ticks at 50% and 80%, matching the screenshot. A live bundle reproduction was not run because this review is read-only.

Is this the best way to solve the issue?

Unclear: the existing Display toggle is a valid workaround, but changing the default visibility or marker styling is a UX decision rather than a purely mechanical bug fix.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • No live macOS bundle reproduction was run in this read-only review, so the exact contrast under the reporter's appearance settings is inferred from the screenshot and source.
  • Changing the default or styling could remove visual warning landmarks for users who intentionally rely on them.

Codex review notes: model gpt-5.5, reasoning high; reviewed against ef2a14525afc.

Label changes

Label changes:

  • add P3: This is a low-risk UI presentation issue with an existing setting-based workaround and no data, auth, or availability impact.
  • add impact:other: The issue affects visible progress-bar readability, which is maintainer-visible UI impact outside the specific owned impact categories.
  • 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: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:

  • P3: This is a low-risk UI presentation issue with an existing setting-based workaround and no data, auth, or availability impact.
  • impact:other: The issue affects visible progress-bar readability, which is maintainer-visible UI impact outside the specific owned impact categories.
Evidence reviewed

What I checked:

  • Issue screenshot: The attached image shows Total, Auto, and API progress bars at 0% used with dark vertical ticks around the 50% and 80% positions.
  • Progress bar marker rendering: Current main draws each warning marker as a full-height rectangular tick using primary color at 72% opacity, which explains the dark bars shown in the screenshot. (Sources/CodexBar/UsageProgressBar.swift:80, ef2a14525afc)
  • Default thresholds map to the reported positions: Marker percentages are derived from active quota warning thresholds; in used-percent mode the default 50 and 20 remaining thresholds render at 50% and 80%. (Sources/CodexBar/MenuCardQuotaWarningMarkers.swift:15, ef2a14525afc)
  • Markers are visible by default: Settings defaults keep quota warning markers visible unless the user has stored a false value. (Sources/CodexBar/SettingsStore.swift:320, ef2a14525afc)
  • Existing hide control: The Display settings pane includes a Show quota warning markers toggle, so one supported workaround already exists without changing warning notifications. (Sources/CodexBar/PreferencesDisplayPane.swift:77, ef2a14525afc)
  • Related completed work: GitHub search found the prior request to make quota threshold tick marks optional, completed by the merged hide-toggle PR, but this newer report is still useful because it concerns the visible default/current experience.

Likely related people:

  • Alekstodo: Commit 18eb73dde236268d3432fbf051bf1a3c31b8c94d added quota warning controls and the progress-bar marker drawing path. (role: introduced behavior; confidence: high; commits: 18eb73dde236; files: Sources/CodexBar/UsageProgressBar.swift, Sources/CodexBar/MenuCardQuotaWarningMarkers.swift)
  • ThiagoCAltoe: PR history shows the hide-markers setting was added in commit 009420a7f1de18aca3355e4fc5fda3e9ab85053d, directly adjacent to this report. (role: adjacent follow-up owner; confidence: high; commits: 009420a7f1de; files: Sources/CodexBar/PreferencesDisplayPane.swift, Sources/CodexBar/SettingsStore.swift, Sources/CodexBar/StatusItemController+MenuCardModel.swift)
  • Yuxin-Qiao: Commit e9b7e25f851b6a96cd6f725a1c2d534a4bee5e65 extended the same marker pipeline for optional weekly workday segmentation. (role: recent adjacent contributor; confidence: medium; commits: e9b7e25f851b; files: Sources/CodexBar/MenuCardQuotaWarningMarkers.swift, Tests/CodexBarTests/MenuCardModelCodexProjectionTests.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 May 25 '26 22:05 clawsweeper[bot]

Fixed on main in 83ffae32.

What changed:

  • Quota warning markers now render as subtle inset hairline ticks instead of full-height bars.
  • Added focused marker-geometry coverage so they do not regress to the artifact-like bars.
  • While running the required gate, make check exposed existing size-limit lint failures; I did a mechanical helper/test split so the gate is green again.

Proof:

  • swift test --filter MenuCardQuotaWarningMarkerTests (9 tests)
  • swift test --filter MenuCardAntigravityTests (4 tests)
  • swift test --filter AntigravityStatusProbeTests (35 tests)
  • make check
  • autoreview: clean, no accepted/actionable findings

steipete avatar May 27 '26 02:05 steipete