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

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

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

Visibility: public

Requested revision: 4e3e689c5a3621acb851d23d7bede84b68b6fb0a

Requested commit: 4e3e689c5a3621acb851d23d7bede84b68b6fb0a

Commit: 4e3e689c5a3621acb851d23d7bede84b68b6fb0a

Tree: 105dd6c4c75a9bca4bb6f28eda0ba969f2f1ec85

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

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

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