{"version":"2.1.191","anchor":"prompt-draft-auto-save-in-development","canonical_anchor":"prompt-draft-auto-save-in-development","heading":"Prompt Draft Auto-Save [In Development]","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.191\/e\/prompt-draft-auto-save-in-development","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.191","markdown":"### Prompt Draft Auto-Save [In Development]\n\n**What**\n\nInfrastructure 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.\n\n**Status**\n\nFully implemented \u2014 write and read paths are both present. Not yet confirmed as user-visible in all configurations.\n\n**Details**\n\n- Draft is written to `CLAUDE_JOB_DIR\/.prompt-draft`, capped at 256 KiB (content is sliced at 262144 bytes before write)\n- On session restore, the draft file is read back (up to 1 MiB), then immediately deleted \u2014 one-shot recovery, not a persistent store\n- If the session is not in auto mode, the draft is restored to the composer input box directly (`V$t`)\n- If the session has no prior prompt set, the draft is restored to in-memory context (`Myt`)\n- The earlier changelog note that \"no write\/read paths appear to be wired\" is outdated \u2014 both paths exist in this version\n\n**Evidence**\n\nDraft write\/read functions (search for `\".prompt-draft\"` or the 262144 byte cap constant)"}