Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Saving long prompts to a file during compaction is reworked

When compacting, Claude Code can now fold several long prompts into a file, avoids saving twice, and records why it skipped saving

You'll notice Improvements
JSON All of v2.1.331
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
CompactionArea: what it touches
ImprovementsKind: in v2.1.331,
ImprovementsSection of the release
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.

See this entry in the whole of v2.1.331 →

Feedback