# Prevent duplicate sends and sync worktree branch state · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/bb2164c9459eeeff603aebd540701918e0d9286f)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: bb2164c9459eeeff603aebd540701918e0d9286f

Requested commit: bb2164c9459eeeff603aebd540701918e0d9286f

Commit: bb2164c9459eeeff603aebd540701918e0d9286f

Tree: f8569ae7cf014bd42df4df6340cdc4e5ff058487

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
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

```

## Parents

- [8c91aa5570868091253be8f0ef333a46aa1b0450](https://git.cafe/screen/t3code-personal/commit/8c91aa5570868091253be8f0ef333a46aa1b0450?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/bb2164c9459eeeff603aebd540701918e0d9286f?format=markdown)
