# Refactor terminal state store to use granular thread selectors · screen/t3code-personal

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

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

Visibility: public

Requested revision: 246624ad3cce74f0fc14e8b98eb23b2fc1db585c

Requested commit: 246624ad3cce74f0fc14e8b98eb23b2fc1db585c

Commit: 246624ad3cce74f0fc14e8b98eb23b2fc1db585c

Tree: 829d966fa7f896c107349a31230ae57eed75bc9e

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Refactor terminal state store to use granular thread selectors

- Replace `getTerminalState` reads with `selectThreadTerminalState` in ChatView and Sidebar
- Split terminal reducer into pure thread terminal operations used by the Zustand store
- Drop persisted default thread entries and add tests for the new operation helpers

```

## Parents

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

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