# fix\(codex\): wait for turn/completed before treating a 429 stop as confirmed · pingdotgg/t3code

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

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

Visibility: public

Requested revision: f0478d229d8f057d962300232abe842604dfe559

Requested commit: f0478d229d8f057d962300232abe842604dfe559

Commit: f0478d229d8f057d962300232abe842604dfe559

Tree: 0d9f6481b5ac8813555da5b8290bb44349db243f

Author: Hong Liu

Committer: Hong Liu

## Message

```
fix(codex): wait for turn/completed before treating a 429 stop as confirmed

A turn/interrupt reply only acknowledges the request; turn/completed is the
authoritative signal that a turn stopped. When the 429 deadline interrupted
the root or a descendant, a bare reply was taken as confirmation, so the
turn could be settled as reusable while Codex was still running it.

Wait up to 10 seconds after the interrupt for the turn to end. A root that
does not end in time moves to the unconfirmed bound and is reported broken;
a descendant that does not end in time is abandoned and its thread marked
errored.

```

## Parents

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

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