# Guard branch sync when no active thread is selected · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/86a2cbc3d436866a0d486bafabc5911cc8dcf3ef)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 86a2cbc3d436866a0d486bafabc5911cc8dcf3ef

Requested commit: 86a2cbc3d436866a0d486bafabc5911cc8dcf3ef

Commit: 86a2cbc3d436866a0d486bafabc5911cc8dcf3ef

Tree: 63ce415de30b85b98e81d18fb6f9838d01d9e8ee

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Guard branch sync when no active thread is selected

- Prevent `SET_THREAD_BRANCH` dispatch unless both `activeThreadId` and `syncedBranch` exist
- Avoids updating thread-branch state without an active thread context

```

## Parents

- [3756bbf5cd693b90a9cd72724693cfc9276221aa](https://git.cafe/pingdotgg/t3code/commit/3756bbf5cd693b90a9cd72724693cfc9276221aa?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/86a2cbc3d436866a0d486bafabc5911cc8dcf3ef?format=markdown)
