# feat\(analytics\): credit v2 threads and turns to the starting client \(\#7774\) · flambo/t3code

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

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

Visibility: public

Requested revision: 736ed377755715fbd0e9fd699c263183ed69dd34

Requested commit: 736ed377755715fbd0e9fd699c263183ed69dd34

Commit: 736ed377755715fbd0e9fd699c263183ed69dd34

Tree: a4e332ded539a5734e7a4ba5e7876ba8a1e59f31

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
feat(analytics): credit v2 threads and turns to the starting client (#7774)

Main records which client surface started each thread and turn; the v2
dispatch path replaced the v1 handler that did the recording, so v2
environments only reported connections. The v2 RPC layer now records
client.thread.started on thread launches (plus client.turn.requested when
the launch carries an initial message) and client.turn.requested on
message dispatches, using the connection's announced origin. Recording is
best-effort — attribution can never fail the user's command.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

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

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