# fix\(server\): keep the live thread goal when marking a 429 thread errored · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 837b02b504a2fcd8be44dd531c4c09a67d3ebbd4

Requested commit: 837b02b504a2fcd8be44dd531c4c09a67d3ebbd4

Commit: 837b02b504a2fcd8be44dd531c4c09a67d3ebbd4

Tree: fe55875bcf37d0b24782b5357553acf6fb26f4db

Author: Hong Liu

Committer: Hong Liu

## Message

```
fix(server): keep the live thread goal when marking a 429 thread errored

The provider_thread.updated sent when an unconfirmed 429 marks its
thread errored replaces the whole thread, but it was built from the
turn's snapshot taken at turn start. A goal Codex reported later in the
turn was rewound to the stale one. Build the update from the live root
thread instead, falling back to the turn's snapshot.

```

## Parents

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

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