{"version":"2.1.331","anchor":"prompt-as-file-handling-reworked-for-long-prompts","canonical_anchor":"prompt-as-file-handling-reworked-for-long-prompts","heading":"Saving long prompts to a file during compaction is reworked","tier":"notice","area":"Compaction","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/prompt-as-file-handling-reworked-for-long-prompts","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Saving long prompts to a file during compaction is reworked\n\nWhen compacting, Claude Code can now fold several long prompts into a file, avoids saving twice, and records why it skipped saving\n\n**What**\n\nCompaction is when Claude Code shortens a long conversation so it fits in the model's memory. During compaction, a very long prompt you typed can be saved to a file instead of kept inline. That step has been reworked:\n\n- it tracks whether a file was already saved, so it does not save the same thing twice\n\n- it can fold several long prompts together\n\n- it marks the saved attachment to show that copies sit behind it\n\n- it records a reason whenever it decides not to save\n\nThe reasons are `still_too_long_with_file`, `still_too_long_with_note`, `no_long_prompt`, `not_from_a_person` and `rest_of_conversation_too_long`. Before, the step simply returned without saying anything when no prompt qualified.\n\n**Why**\n\nThis changes when oversized prompts get moved into a file as a conversation is compacted.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}