{"version":"2.1.38","anchor":"file-snapshot-persistence-for-plan-recovery","canonical_anchor":"file-snapshot-persistence-for-plan-recovery","heading":"File Snapshot Persistence for Plan Recovery","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.38\/e\/file-snapshot-persistence-for-plan-recovery","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.38","markdown":"### File Snapshot Persistence for Plan Recovery\n\n**What**\n\nPlan mode now persists file snapshots to the conversation transcript, enabling recovery if files are deleted.\n\n**Details**\n\n- File snapshots are stored as system messages with subtype `file_snapshot`\n- Recovery sequence when resuming a conversation:\n\n- Try to read plan file from disk\n- If missing, recover from file snapshot in message history\n- If no snapshot, attempt recovery from serialized plan content\n\n- Log messages indicate recovery source: \"Plan recovered from file snapshot\"\n- Protects against accidental file deletion during long planning sessions\n\n**Evidence**\n\nRecovery system (search for `\"Plan recovered from file snapshot\"`)"}