feat: display rate limit events from stream output #155

Closed
opened 2026-02-24 11:00:38 -08:00 by hikari · 0 comments
Owner

Summary

Claude CLI 2.1.45 added SDKRateLimitInfo and SDKRateLimitEvent types to the SDK for communicating rate limit status to consumers.

Current behaviour

Rate limit events are not detected or surfaced in the terminal, so users have no visibility into whether they are being rate limited during a session.

Desired behaviour

Investigate whether rate limit events appear in the --output-format stream-json NDJSON output (and if so, what their structure is). If they do, parse and display them in the terminal — e.g. as a [rate-limit] system message showing the limit type and reset time. This would significantly improve debuggability for users hitting quota limits.

References

  • Claude CLI changelog 2.1.45

This issue was created with help from Hikari~ 🌸

## Summary Claude CLI 2.1.45 added `SDKRateLimitInfo` and `SDKRateLimitEvent` types to the SDK for communicating rate limit status to consumers. ## Current behaviour Rate limit events are not detected or surfaced in the terminal, so users have no visibility into whether they are being rate limited during a session. ## Desired behaviour Investigate whether rate limit events appear in the `--output-format stream-json` NDJSON output (and if so, what their structure is). If they do, parse and display them in the terminal — e.g. as a `[rate-limit]` system message showing the limit type and reset time. This would significantly improve debuggability for users hitting quota limits. ## References - Claude CLI changelog 2.1.45 ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-02-24 20:48:50 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#155