Claude Code 在 30 天后会删除对话记录。
分享这个希望能帮助其他人避免我经历的数据丢失:<p>CC的默认设置是30天的数据保留: https://github.com/anthropics/claude-code/issues/59248<p>如果您想保留您的记录,您需要在`settings.json`中更新`cleanupPeriodDays`。
查看原文
Sharing this in hopes it saves other people the data loss I experienced:<p>CC's default setting is a 30-day data retention: https://github.com/anthropics/claude-code/issues/59248<p>If you want to keep your transcripts, you'll need to update `cleanupPeriodDays` in your `settings.json`.