Refactor Zustand store usage to granular selectors

- Replace combined `useStore` state/dispatch wrapper with direct selector/action hooks across chat UI components
- Inline and harden terminal state transitions inside `terminalStateStore` and remove `threadTerminalState`
- Add `terminalStateStore` action tests covering defaults, splits, groups, activity, and close/reset behavior
f84f279738Julius Marminge committed on 3/2/2026, 9:13:19 PM· committed by Julius Marmingeparent246624a
12 files changedLine totals unavailable