Extract branch sync logic and limit sync to local mode

- move branch-sync decision into `BranchToolbar.logic.ts`
- avoid auto-sync when env mode is `worktree` or thread has worktree path
- add unit tests for sync and no-sync cases
afdfe16931Julius Marminge committed on 2/17/2026, 11:12:07 PM· committed by Julius Marmingeparent73fa2d6
3 files changedLine totals unavailable