{"version":"2.1.269","anchor":"terminal-mode-tracker-gets-a-full-resetall-for-app-teardow","canonical_anchor":"terminal-mode-tracker-gets-a-full-resetall-for-app-teardow","heading":"Terminal mode tracker gets a full resetAll() for app teardown","tier":"internal","area":"Terminal UI","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269\/e\/terminal-mode-tracker-gets-a-full-resetall-for-app-teardow","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269","markdown":"### Terminal mode tracker gets a full resetAll() for app teardown\n\nTerminal mode tracker gains resetAll() to fully clean up on app exit\n\n**What**\n\nThe internal tracker that keeps tabs on active terminal display modes (like alternate screen buffer or mouse capture) has a new `resetAll()` method. It turns off every tracked mode's effect, regardless of whether that mode was marked as suspended or kept active, and it now runs automatically when the terminal UI (built on Ink) shuts down.\n\n**Why**\n\nThis guarantees the terminal is left in a clean state when Claude Code exits, avoiding leftover terminal modes (such as mouse capture staying on) that could make the terminal behave oddly after the app closes.\n\n- Area: Terminal UI\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5"}