Under the hood
Terminal mode tracker gains resetAll() to fully clean up on app exit
What
The 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.
Why
This 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.