Skip to content

Usage hub (CLIProxy) rows don't show the pace tick in the sidebar usage card #44149

Done

Description

@anandrajaram21

Summary

In the sidebar usage card, rows backed by a usage hub (CLIProxy) never show the pace tick on the bar. Rows from a directly-probed provider do show it.

Steps to reproduce

  1. Add a CLIProxy source under Settings → Providers (usage limit sources) with at least one Claude or Codex account.
  2. Open a thread whose provider can't read its own limits, so the card falls back to the hub accounts.
  3. Look at the Session and Weekly rows in the card.

Expected

The bar shows the pace tick (the elapsed-time position in the window), as it does for non-hub rows.

Actual

No tick on the bar. Hovering the row shows the pace text ("Ahead of pace" / "On pace" / "Under pace"), so pace is computed but not drawn.

Likely cause

Found by reading the bundled client (v0.1.12), not by running a debugger. Minified names:

  • vW (single-window row) computes Di(window, now) and passes it as tick to the bar component SW.
  • bW (pooled row) renders <SW label fill tone value ariaValue opensUsage tooltip> with no tick. SW defaults tick to null, so nothing is drawn.
  • cW falls back to dW, which returns { kind: "pool" }, whenever the instance's own limits are unavailable. Hub accounts therefore always render through bW.
  • $g already computes a weighted pace (pace: o_(m, h)) from the weighted elapsed fraction h, but the pooled window object only exposes pace, not h.

The hub data is complete. The CLIProxy adapter sets windowDurationMins for Claude (300 / 10080) and Codex, and passes resets_at through.

Suggested fix

Expose the weighted elapsed fraction from $g on the pooled window (e.g. elapsedPercent) and pass it as tick in bW, mirroring vW.

Environment

  • T3 Code (Beta) desktop, bundle version 0.1.12
  • macOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions