# Prevent duplicate sends while composer request is in flight · screen/t3code-personal

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

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

Visibility: public

Requested revision: 8c91aa5570868091253be8f0ef333a46aa1b0450

Requested commit: 8c91aa5570868091253be8f0ef333a46aa1b0450

Commit: 8c91aa5570868091253be8f0ef333a46aa1b0450

Tree: 7d6499922af59966503df6bc38b38f35d7bc29cf

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Prevent duplicate sends while composer request is in flight

- Add `sendInFlightRef` guard in `ChatView` send handler
- Set sending state before async work and always clear it in `finally`
- Wrap early send flow in one `try/finally` to avoid double-submit races

```

## Parents

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

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