Claude Code 在 30 天后会删除对话记录。

2作者: mieubrisse大约 1 个月前原帖
分享这个希望能帮助其他人避免我经历的数据丢失:<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&#x27;s default setting is a 30-day data retention: https:&#x2F;&#x2F;github.com&#x2F;anthropics&#x2F;claude-code&#x2F;issues&#x2F;59248<p>If you want to keep your transcripts, you&#x27;ll need to update `cleanupPeriodDays` in your `settings.json`.