Vibe Coding
Tip: Claude Code hard-deletes session transcripts older than 30 days at every startup, and cleanupPeriodDays defaults to 30
An r/ClaudeAI PSA (81 upvotes, 49 comments) and a matching X post surfaced that `cleanupPeriodDays` defaults to 30 and the purge runs silently on every start, unlinking .jsonl files under ~/.claude/projects with no warning, no Trash and no grace period. Metadata rows survive, so the sidebar advertises sessions that error with "session not found on disk" when clicked. At least five open anthropics/claude-code issues track this; set `"cleanupPeriodDays": 3650` in settings.json before you lose the reasoning trail, and note that setting it to 0 disables persistence rather than disabling cleanup.
Source
↳ Follow the thread