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
817c5e633dJulius Marminge committed on 2/13/2026, 4:27:16 AMparentd9ab1bf
4 files changedLine totals unavailable