Up arrow navigation breaks upon reaching /clear command
Claude Code CLI, MacOS.
This is a very simple fix. When hitting 'Up' to cycle through history, as soon as you hit a /clear command, the up and down arrows no longer cycle through history but are permanently captured by the UI trying to disambiguate between /clear and /compact. It's impossible to escape from without manually backspacing the /clear command, or else hitting Ctrl-C.
Since /clear is such a common command, this effectively makes navigation through history impossible, meaning I'm authoring all prompts in my text editor, and then manually pasting them into Claude Code, every time.
Similar issues with Up navigation exist with pasted code, but the /clear one is the worst. It would be an insane productivity boost to have the history back again.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗