Prevent duplicate sends and sync worktree branch state

- Guard `onSend` with an in-flight ref to block double submits
- Set send phase before worktree prep and always clear in-flight state in `finally`
- Sync thread branch/worktree path immediately and await setup script execution
7b0ae43139Julius Marminge committed on 2/27/2026, 4:49:17 AMparent69dbc5d
1 file changedLine totals unavailable