Rate-limit events without utilization yield no window #226

Open
opened 2026-11-21 12:37:00 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-ai/src/claude_cli.rs (rate_limit_event parsing)
What is hacky: when claude reports only a status, no window is produced; surpassedThreshold is used as a guess.
Proper fix: surface status-only limits as their own state.
Original comment: "...else only a status; surpassedThreshold is the best percent then. ponytail: no percent -> no window."

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-ai/src/claude_cli.rs (rate_limit_event parsing) What is hacky: when claude reports only a status, no window is produced; `surpassedThreshold` is used as a guess. Proper fix: surface status-only limits as their own state. Original comment: "...else only a status; `surpassedThreshold` is the best percent then. ponytail: no percent -> no window." Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the ai label 2026-11-21 12:37:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#226