Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.287 ·

cleanupPeriodDays now also clears old files in .claude/state/served-calls

Claude Code now deletes old files under .claude/state/served-calls after the number of days set by cleanupPeriodDays

You'll notice Improvements
JSON All of v2.1.287
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SettingsArea: what it touches
ImprovementsKind: in v2.1.287,
ImprovementsSection of the release

Unclear It is not clear whether the served-calls files existed before this release or what they record.

What

The cleanupPeriodDays setting decides how many days Claude Code keeps certain files before deleting them. It now also applies to the files in the .claude/state/served-calls folder, both the finished .jsonl files and their temporary .jsonl.tmp copies.

The internal helper that works out how long to keep files used to read only the desktop session cleanup setting. It now reads whichever setting it is given, which is how cleanupPeriodDays can cover this folder.

Why

These files had no retention period before, so they could build up indefinitely. They are now cleared on the same schedule you set for cleanupPeriodDays.

Read from
Names in the bundlecleanupPeriodDays
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on All settings touched a line naming cleanupPeriodDays after this was published. Set an age limit in days for the transcripts of sessions you started or most recently continued in Claude Desktop or Cowork. Without this key, Claude Code [keeps those transcripts at any age](/docs/en/claude-directory#cleaned-up-automatica… settings-reference see the edit
Confirmed since Anthropic's documentation has since written up cleanupPeriodDays, on Explore the .claude directory. * **Claude Desktop and Cowork transcripts**: Claude Code keeps the transcript of a session you started or most recently continued in Claude Desktop or Cowork at any age. To give these transcripts an age limit, set [`desktopSessionCleanupPe… claude-directory see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether the served-calls files existed before this release or what they record.
Anthropic's documentation agreesAnthropic's documentation has since written up cleanupPeriodDays, on Explore the .claude directory.

See this entry in the whole of v2.1.287 →

Feedback