Reset ChatView per thread and simplify derived state handling

- Mount `ChatView` with `key={threadId}` to fully reset UI state on thread switch
- Replace effect-driven local state with direct derived values and cleaner cleanup paths
- Simplify async command/script flows and minor context memo handling in sidebar/ui components
4fca60469dJulius Marminge committed on 3/2/2026, 9:13:19 PM· committed by Julius Marmingeparentafcd824
5 files changedLine totals unavailable