# feat\(orchestration-v2\): show live context usage in the meter \(\#8144\) · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/e7b3e373bc02014b5bbde91a39f47c515e05cb70)

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

Visibility: public

Requested revision: e7b3e373bc02014b5bbde91a39f47c515e05cb70

Requested commit: e7b3e373bc02014b5bbde91a39f47c515e05cb70

Commit: e7b3e373bc02014b5bbde91a39f47c515e05cb70

Tree: 26e5be1cd8e7850a2e3583fa380ee00c762ce7f8

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
feat(orchestration-v2): show live context usage in the meter (#8144)

The v2 context meter could only show token counts after a compaction had
already happened — v2 had no live usage plumbing at all, so main's
compaction-threshold UX was invisible on v2 threads. Provider turns now
carry an optional tokenUsage report: the Codex adapter maps the
app-server's thread/tokenUsage/updated notification (total breakdown +
model context window) onto the active provider turn, ChatView picks the
newest report out of the projection, and the meter prefers it over the
compaction fallback — so usage and remaining-context percentages update
while the turn runs.

Claude's v2 adapter does not report usage yet; its meter falls back to
compaction items as before.

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

```

## Parents

- [57d96a9104a392237611d51c9e3fd9ca56418af7](https://git.cafe/stienswout/t3code/commit/57d96a9104a392237611d51c9e3fd9ca56418af7?format=markdown)

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