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

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

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

Visibility: public

Requested revision: a5a5246426395887ca060557500d9636503a7762

Requested commit: a5a5246426395887ca060557500d9636503a7762

Commit: a5a5246426395887ca060557500d9636503a7762

Tree: 279c67b2e4e4901c0cabf4317c6858b39a62eb09

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

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

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