{"version":"2.1.271","anchor":"session-switch-flow-resets-memoryfile-read-state-before-rep","canonical_anchor":"session-switch-flow-resets-memoryfile-read-state-before-rep","heading":"Session-switch flow resets memory\/file-read state before replacing messages","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/session-switch-flow-resets-memoryfile-read-state-before-rep","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### Session-switch flow resets memory\/file-read state before replacing messages\n\nSwitching sessions now resets file-read and memory state before loading the new session's messages\n\n**What**\n\nWhen Claude Code switches to a different session (for example, restoring a remote session), it now resets the tracked state of which files have been read and which nested memory files were loaded, before it replaces the message history with the new session's messages.\n\n**Why**\n\nWithout this reset, stale file-read or memory information from the previous session could carry over incorrectly into the newly loaded session.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}