Add close-terminal actions and state handling in thread drawer

- Add terminal close controls in tab and split terminal views
- Send `exit` before closing and update active terminal/focus in chat state
- Add reducer support and tests for closing tabs, split fallback, and final-terminal drawer hide
ee463f6b76Julius Marminge committed on 2/13/2026, 5:24:49 AM· committed by Julius Marmingeparent800eb3b
4 files changedLine totals unavailable