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
86a2cbc3d4Julius Marminge committed on 2/17/2026, 10:27:09 PMparent3756bbf
1 file changedLine totals unavailable