upvote
For both claude-code or gemini-cli, hit escape twice, or, /rewind.
reply