-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Regression of #1031 on 0.28.0: "still loading usage data" error reappears with Claude CLI 2.1.148 #1116
Copy link
Copy link
Closed
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Summary
The fix from #1031 / PR #1032 (commit
1dd2804f) is included in my build,but the exact symptom and error message it addressed have returned with
Claude CLI 2.1.148:
The
CodexBarClaudeWatchdoghelper spawns within ~5s of every relaunch,confirming the CLI PTY fallback is being used rather than OAuth or browser
cookies. The loading-state retry added in #1032 appears not to be
recovering on this CLI version.
Scope of the failure
The Claude tab's cost/token histogram (computed locally from
~/.claude/projects/*.jsonl) renders correctly — showing today's spend,30-day spend, top model, etc. The failure is isolated to the
session/weekly quota probe path (OAuth → cookies → CLI PTY). Local-log
cost computation and the quota probe are independent codepaths; only the
latter is broken.
Environment
855945a8) — 41 commits ahead ofthe Fix Claude usage loading stalls #1032 fix commit (
gh api repos/steipete/CodexBar/compare/1dd2804f...855945a8→
ahead_by: 41, behind_by: 0), so the fix is in this build~/.local/bin/claudeclaude.aiin both Chrome (active session) and Safari(freshly authenticated during testing)
Suspected root cause
ClaudeStatusProbe.isUsageStillLoadingmatches the normalized substring"loadingusage". Direct (non-PTY) invocation ofclaude /usageon2.1.148 returns a single line:
That text does not contain
"loadingusage"after normalization, so theloading detector would return
falsefor the final response. The errorin the menu bar therefore implies CodexBar's PTY probe is reading the
buffer before the final response materializes — catching the
intermediate "Loading usage…" render and emitting the loading-state error
without the retry succeeding.
Observed behavior
After each relaunch:
…appears in
ps auxwithin ~5 seconds, and the Claude tab shows theerror above. Persisted across ~10 hours of uptime and multiple restarts.
Steps to reproduce
claude.aiin a supported browser.ps aux | grep CodexBarshows the watchdog helper running.What I tried (none fixed it)
claude.aicookie (visit + sign in), then restartCodexBar. Cookie file
~/Library/Cookies/Cookies.binarycookiestimestamp confirms write. Watchdog still spawns; error persists.
claude.aisessions are valid; since Safaricookies are not Keychain-protected on macOS, this rules out a
Chrome-Safe-Storage-ACL issue as the sole cause (see also Keychain prompt for "Chrome Safe Storage" still appears repeatedly on 0.27.1 — is one-time entry supposed to stop it? #1056).
Possible directions
Claude CLI 2.1.148 has settled — the CLI may have slower cold-start
on 2.1.148 than earlier versions.
the
"loadingusage"detection in 0.28.0, or the longer probe is alsotiming out before the final response renders.
ClaudeStatusProbecorrectly retry whenisUsageStillLoadingreturnstrue, and does that retry path loganywhere I could inspect to confirm?
Diagnostic output
Happy to provide a CodexBar log bundle (
Console.appfilter, or whereverthe app writes its log) — just let me know which output is most useful.