What
Typing ! at the start of the prompt puts it in shell mode, where what you type runs as a terminal command instead of going to Claude. Pasting into that prompt behaves differently now:
- Pasting into an empty prompt in shell mode removes two leading spaces from the start of each pasted line.
- Pasting text that starts with two spaces and then
!outside shell mode shows the hint "To run a copied command, type ! before you paste it".
The prompt box also now keeps track of edits made by keystrokes, so that undo can group them together.
Why
Commands copied from documentation or chat are often indented or carry the ! in front. These changes stop that extra text from breaking the command, and tell you how to run it when it would otherwise be sent to Claude as a message.