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

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/75354bbd962d9fc38a1ba40ee78520822b349016)

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

Visibility: public

Requested revision: 75354bbd962d9fc38a1ba40ee78520822b349016

Requested commit: 75354bbd962d9fc38a1ba40ee78520822b349016

Commit: 75354bbd962d9fc38a1ba40ee78520822b349016

Tree: 5f47577128b4605a7d7db4f7fbfd301d41e7cf31

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

- [6a10e97a97f768137f7978375e4cfa13211b063e](https://git.cafe/gitcafe/t3code/commit/6a10e97a97f768137f7978375e4cfa13211b063e?format=markdown)

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