{"version":"2.1.281","anchor":"option-to-keep-session-messages-cache","canonical_anchor":"option-to-keep-session-messages-cache","heading":"Option to keep session messages cache","tier":null,"area":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/option-to-keep-session-messages-cache","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Option to keep session messages cache\n\nA new keepSessionMessagesCache flag, off by default, stops the session messages cache from being cleared\n\n**Unclear.** The finding does not say what sets this flag or when.\n\n**What**\n\nA new internal flag, `keepSessionMessagesCache`, starts off (false) and has a setter that can switch it on. While it is on, the step that clears the stored copy of the session's messages, `clearSessionMessagesCache`, does nothing.\n\n**Why**\n\nThis lets some part of Claude Code keep the stored messages around at times when they would otherwise be thrown away."}