@devries-cameron20 / t3code Mirror · read-only / commits / 6d8d39a5d1
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 18:30 UTC

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

Julius Marminge committed Feb 17, 2026 at 14:27 UTC 6d8d39a5d18bb233497c94ff3e930ac5e70c6970
1 file changed +1 -1
apps/web/src/components/BranchToolbar.tsx
+1 -1
@@ -94,7 +94,7 @@ export default function BranchToolbar({
94 activeThreadBranch,
95 queryBranches,
96 });
97 - if (!syncedBranch) return;
97 + if (!activeThreadId || !syncedBranch) return;
98
99 dispatch({
100 type: "SET_THREAD_BRANCH",