# Reset ChatView per thread and simplify derived state handling · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/4fca60469dfc5dab7d8d742e965f4ab260f20c3c)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: 4fca60469dfc5dab7d8d742e965f4ab260f20c3c

Requested commit: 4fca60469dfc5dab7d8d742e965f4ab260f20c3c

Commit: 4fca60469dfc5dab7d8d742e965f4ab260f20c3c

Tree: fb081e535e6b15919e1f65b85a2829408ecff999

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
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

```

## Parents

- [afcd824ae9ca93672fda317562e0076ce8918c89](https://git.cafe/screen/t3code-personal/commit/afcd824ae9ca93672fda317562e0076ce8918c89?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/4fca60469dfc5dab7d8d742e965f4ab260f20c3c?format=markdown)
