How to disable Auto-Delete of Chat History in Claude Code
Apparently, Claude Code auto deletes chat history/session after 30 days by default.
However, you can configure this behaviour by setting cleanupPeriodDays in your ~/.claude/settings.json config file.
{
"cleanupPeriodDays": 99999
}
There is no boolean option to disable it but by setting the above day, we delay it by 274 years ๐