# fix\(server\): keep a 429 turn broken when Stop ends it mid-deadline · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/0a3f6703e4d8f097f136157162b4357727322099)

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

Visibility: public

Requested revision: 0a3f6703e4d8f097f136157162b4357727322099

Requested commit: 0a3f6703e4d8f097f136157162b4357727322099

Commit: 0a3f6703e4d8f097f136157162b4357727322099

Tree: de345155c83a991a4267d67ce362ed24b8d26cb3

Author: Hong Liu

Committer: Hong Liu

## Message

```
fix(server): keep a 429 turn broken when Stop ends it mid-deadline

When Stop was already waiting for turn/completed as the 429 retry
deadline fired, the deadline marked the turn exhausted but left its
containment unset until its own interrupt wait finished. If Stop's
wait expired first, the turn ended as reusable although neither
interrupt was confirmed, so a follow-up could reuse a thread that may
still be retrying. Treat an exhausted turn with a native thread as
uncontained until turn/completed confirms it ended.

```

## Parents

- [8ea79e49b2f3b2133f3c4fb6548163c96498f31d](https://git.cafe/pingdotgg/t3code/commit/8ea79e49b2f3b2133f3c4fb6548163c96498f31d?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/0a3f6703e4d8f097f136157162b4357727322099?format=markdown)
