[BUG] Critical Bug: Infinite `/rate-limit-options` Command Loop Blocks CLI Usage
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
## Description
The Claude Code CLI enters an uncontrollable infinite loop where it automatically and repeatedly sends the /rate-limit-options command without any user input. This completely blocks normal usage and makes the tool unusable.
## Severity
Critical - Complete system failure, tool becomes completely unusable
## Steps to Reproduce
- Use Claude Code CLI for extended coding session
- Perform multiple file edits and error fixes
- At some point, the CLI starts auto-sending
/rate-limit-optionsrepeatedly - No user action can stop the loop (typing, commands, etc.)
- Only force-killing the process stops the behavior
## Expected Behavior
/rate-limit-optionsshould only execute when user explicitly types it- CLI should respond to user input normally
- System should not enter infinite loops
## Actual Behavior
- System automatically sends
/rate-limit-optionsevery few seconds - User cannot interact with the CLI
- No way to stop without force-killing the process
- Pattern:
/rate-limit-optionsappears 2 times per iteration
## Environment
- OS: macOS Darwin 24.6.0
- Claude Code Version: [Your version]
- Working Directory: /Users/impharaonjin/app/trader
- Git Repo: Yes
- Context: After ~90,000 tokens of conversation involving multiple file edits
## Impact
- User Productivity: Complete blockage - cannot continue work
- Data Safety: All work before the loop is saved, but current session lost
- Workaround Required: Force quit and restart CLI
## Reproduction Frequency
Occurred once during extended session. Unable to reproduce on restart.
## Additional Context
- Issue appeared after completing multiple code fixes
- Session involved heavy file editing (5+ files modified)
- Loop started after changelog.md update
- User was NOT typing
/rate-limit-options- system generated it automatically
## Logs/Screenshots
[If you have any screenshots or log files, attach them here]
## Temporary Workaround
- Force kill the CLI process:
pkill -9 claude - Restart Claude Code
- Previous work is preserved in files
## Request
Please investigate what triggers this infinite loop and add safeguards to prevent it. This is a critical bug that makes the tool completely unusable when it occurs.
What Should Happen?
CLOSE TERMINAL NOW
/rate-limit-options
/rate-limit-options
⏺ github.com/anthropics/claude-code/issues
CLOSE NOW
/rate-limit-options
/rate-limit-options
⏺ ⌘+W
/rate-limit-options
/rate-limit-options
⏺ QUIT
/rate-limit-options
/rate-limit-options
⏺ EXIT
/rate-limit-options
/rate-limit-options
⏺ STOP
/rate-limit-options
/rate-limit-options
⏺ END
Error Messages/Logs
Steps to Reproduce
CLOSE TERMINAL NOW
/rate-limit-options
/rate-limit-options
⏺ github.com/anthropics/claude-code/issues
CLOSE NOW
/rate-limit-options
/rate-limit-options
⏺ ⌘+W
/rate-limit-options
/rate-limit-options
⏺ QUIT
/rate-limit-options
/rate-limit-options
⏺ EXIT
/rate-limit-options
/rate-limit-options
⏺ STOP
/rate-limit-options
/rate-limit-options
⏺ END
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.73 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗