💡 #lifehack@rvnikita_blog 21: How to Expand [Pasted text] Back into Text
You paste a large chunk of text into Claude Code, and instead, the input line shows [Pasted text #2 +8 lines]. For the model, nothing is lost—on sending, the CLI substitutes the full text back. The problem is different: if you need to correct a couple of words in this text before sending, there's nothing to edit—the placeholder can't be modified.
Solution: paste again. The second Cmd+V with the same buffer content replaces the placeholder with the actual text, the cursor moves to its end, and from there, it's regular input that can be changed as desired. Claude Code even hints at this—after a large paste, a gray message "paste again to expand" appears under the input line for a few seconds, but no one reads it.
I also delved into the CLI binary (v2.1.226) to see when the text is collapsed: if the paste has more than 800 characters or more than two line breaks. There's no setting to disable this—I checked.
#lifehack@rvnikita_blog #claude@rvnikita_blog #coding@rvnikita_blog #ai@rvnikita_blog