What's wrong with this entry?
Infrastructure for saving the current input box contents as a draft (.prompt-draft) has been added, which would allow the prompt to persist if the session exits unexpectedly.
Fully implemented — write and read paths are both present. Not yet confirmed as user-visible in all configurations.
- Draft is written to
CLAUDE_JOB_DIR/.prompt-draft, capped at 256 KiB (content is sliced at 262144 bytes before write) - On session restore, the draft file is read back (up to 1 MiB), then immediately deleted — one-shot recovery, not a persistent store
- If the session is not in auto mode, the draft is restored to the composer input box directly (
V$t) - If the session has no prior prompt set, the draft is restored to in-memory context (
Myt) - The earlier changelog note that "no write/read paths appear to be wired" is outdated — both paths exist in this version
Draft write/read functions (search for ".prompt-draft" or the 262144 byte cap constant)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.