# Replace thread latestTurnId with structured latestTurn metadata · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 3f81f9dcb40dd18ba8a95735ce017dc8b69373c2

Requested commit: 3f81f9dcb40dd18ba8a95735ce017dc8b69373c2

Commit: 3f81f9dcb40dd18ba8a95735ce017dc8b69373c2

Tree: eaa4b2058cc8b0d9529c55ff9fe0a46ac7e5aca2

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Replace thread latestTurnId with structured latestTurn metadata

- add `OrchestrationLatestTurn` schema and store full turn state/timestamps/message linkage
- update server projector/snapshot queries to populate `latestTurn` from session + projection_turns
- migrate web store/components to consume `latestTurn` and adjust related tests

```

## Parents

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

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