# Track runtime event sequence and order thread activities by sequence · flambo/t3code

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

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

Visibility: public

Requested revision: 2c631e872507018994dd86d1c33148564c8c0426

Requested commit: 2c631e872507018994dd86d1c33148564c8c0426

Commit: 2c631e872507018994dd86d1c33148564c8c0426

Tree: 097be485b8fcf791073169e56c39fd1c2a7cf6e7

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Track runtime event sequence and order thread activities by sequence

- add per-session `sessionSequence` on provider runtime events and persist activity `sequence`
- migrate `projection_thread_activities` with nullable `sequence` column + index
- sort server/web activity projections by sequence fallback to timestamp/id
- allow provider sessions/turns to start before a real threadId is emitted

```

## Parents

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

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