[BUG] Ctrl+o (expand chat history) causes "/rate-limit-options" spam after hitting rate limit

Resolved 💬 3 comments Opened Jan 20, 2026 by mitburr Closed Jan 24, 2026

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?

After hitting the API rate limit, using the ctrl+o keyboard shortcut to expand the chat history causes
/rate-limit-options to be repeatedly printed/spammed in the output, filling the terminal with many repeated lines

What Should Happen?

Typical ctrl+o behavior should expand the chat history to show older chats.

Error Messages/Logs

Steps to Reproduce

  1. Reach the hourly token limit with Claude pro plan.
  2. Choose the "wait for the limit to reset" option when prompted.
  3. Type ctrl+o to expand chat history.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.12

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

Env:

  • OS: Arch Linux (6.18.5-arch1-1)
  • Shell: zsh

I note that others have identified similar bugs with a flood of the /rate-limit-options text, so there is likely a similar root cause, specifically with how the /rate-limit-options symbol is added to chat history.

View original on GitHub ↗

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