What
When Claude Code restores the terminal's modes (settings that change how the terminal sends keys and mouse input), it now also restores bracketed paste mode. That mode lets the terminal mark pasted text as a paste rather than as typing. Before, only the extended-keys and mouse modes were restored.
Why
If the terminal lost this mode, a multi-line paste could be read as typed keys, with each line break acting like Enter and sending your input early.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What causes Claude Code to restore the terminal modes is not settled.