Skip to content

Claude Unavailable: probe returns empty output on Claude CLI v2.1.37 #97

@aaweb

Description

@aaweb

Bug

ClaudeBar v0.4.24+ shows "Claude Unavailable — Failed to parse output: Could not find session usage" with Claude CLI v2.1.37.

Environment

  • ClaudeBar: v0.4.24 (also tested v0.4.26)
  • Claude CLI: v2.1.37
  • macOS: Darwin 25.2.0

Logs

The first probe attempt hits the folder trust prompt (expected). After ClaudeBar writes trust and retries, the second probe returns only terminal control codes with zero visible content:

[2026-02-09T16:22:54.603Z] [INFO] [probes] Starting Claude probe with /usage command...
[2026-02-09T16:22:58.708Z] [INFO] [probes] Claude /usage output:
[?2004h][?1004h][?25l][<u[?1004l][?2004l][?25h]]9;4;0;[?25h][?1004l][?2004l][?2004h][?1004h][?25l][<u[?1004l][?2004l][?25h]]9;4;0;[?25h][?1004l][?2004l]
[2026-02-09T16:22:58.709Z] [WARNING] [probes] Could not determine account tier, defaulting to Max
[2026-02-09T16:22:58.709Z] [ERROR] [probes] Claude parse failed: could not find 'Current session' percentage in output

The output is just terminal mode enable/disable sequences ([?2004h, [?1004h, [?25l, etc.) with no actual usage text between them. The SwiftTerm renderer produces empty/blank text from this.

Root Cause

It appears Claude CLI v2.1.37 changed how /usage renders — possibly using a fullscreen TUI mode that doesn't emit plain text output the way earlier versions did. The probe's approach of capturing stdout and rendering via SwiftTerm no longer captures the actual usage data.

Expected

ClaudeBar should parse and display usage quota percentages as it does with earlier CLI versions.

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