# Prevent duplicate sends while composer request is in flight · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/69dbc5d0b02c6045dbbe4f2a58c7ae9bf62292eb)

Repository: [flambo/t3code](https://git.cafe/flambo/t3code)

Visibility: public

Requested revision: 69dbc5d0b02c6045dbbe4f2a58c7ae9bf62292eb

Requested commit: 69dbc5d0b02c6045dbbe4f2a58c7ae9bf62292eb

Commit: 69dbc5d0b02c6045dbbe4f2a58c7ae9bf62292eb

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

- [645aaa5e8789d7b6341725ea7718d8209af76402](https://git.cafe/flambo/t3code/commit/645aaa5e8789d7b6341725ea7718d8209af76402?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/69dbc5d0b02c6045dbbe4f2a58c7ae9bf62292eb?format=markdown)
