{"version":"2.1.287","anchor":"session-cleanup-helper-generalized-served-calls-files-now-c","canonical_anchor":"session-cleanup-helper-generalized-served-calls-files-now-c","heading":"cleanupPeriodDays now also clears old files in .claude\/state\/served-calls","tier":"notice","area":"Settings","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287\/e\/session-cleanup-helper-generalized-served-calls-files-now-c","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287","markdown":"### `cleanupPeriodDays` now also clears old files in .claude\/state\/served-calls\n\nClaude Code now deletes old files under .claude\/state\/served-calls after the number of days set by `cleanupPeriodDays`\n\n**Unclear.** It is not clear whether the served-calls files existed before this release or what they record.\n\n**What**\n\nThe `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.\n\nThe 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.\n\n**Why**\n\nThese files had no retention period before, so they could build up indefinitely. They are now cleared on the same schedule you set for `cleanupPeriodDays`.\n\n- Area: Settings\n- Names: `cleanupPeriodDays`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5"}