What
Compaction 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:
- it tracks whether a file was already saved, so it does not save the same thing twice
- it can fold several long prompts together
- it marks the saved attachment to show that copies sit behind it
- it records a reason whenever it decides not to save
The 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.
Why
This changes when oversized prompts get moved into a file as a conversation is compacted.