You'll notice
Restoring a saved draft now correctly preserves pasted content only for prompt-mode drafts
What
When Claude Code restores a previously saved draft of your input (for example after using summarize or undo), it now checks what kind of draft it is:
promptdrafts are re-parsed so any pasted-content placeholders are correctly restored- other kinds of drafts, such as bash input, keep their raw text and are treated as having no pasted content
- the function that restores pasted content is only called when there is actually pasted content to restore
Why
Previously, restoring a draft could mishandle pasted content depending on the draft's mode. This fix makes sure pasted text (like a block of code or file contents you pasted in) comes back correctly when you return to a prompt draft, without incorrectly applying pasted-content logic to non-prompt drafts like bash commands.