Internal /rate-limit-options command leaking into user history

Resolved 💬 6 comments Opened Jan 11, 2026 by vonscons Closed Mar 7, 2026

Bug Description

The internal /rate-limit-options command is being logged to the user's ~/.claude/history.jsonl file. This appears to happen when users hit the 5-hour rate limit and restart Claude Code.

Steps to Reproduce

  1. Use Claude Code until hitting the 5-hour rate limit
  2. Restart Claude Code
  3. Check ~/.claude/history.jsonl

Expected Behavior

Internal commands should not appear in user history.

Actual Behavior

/rate-limit-options entries accumulate in history.jsonl across multiple projects and sessions.

Example entries:

{"display":"/rate-limit-options","pastedContents":{},"timestamp":1765366342824,"project":"/Users/.../project","sessionId":"..."}

Impact

In my case, 734 entries accumulated over time, polluting the history file.

Environment

  • OS: macOS (Darwin 25.0.0)
  • Claude Code: Latest version

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗