diff options
| author | Adam Malczewski <[email protected]> | 2026-06-22 12:17:08 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-22 12:17:08 +0900 |
| commit | 32cf1b6c4902e89247ff6a6b76100c41e0196d57 (patch) | |
| tree | 76595daba241c611005407d559240bc865882758 /src/core/wire/conformance.ts | |
| parent | cc3a1cecd8c0c17e3f9bb65757d756358d517f94 (diff) | |
| download | dispatch-web-32cf1b6c4902e89247ff6a6b76100c41e0196d57.tar.gz dispatch-web-32cf1b6c4902e89247ff6a6b76100c41e0196d57.zip | |
fix(metrics): preserve turn-metrics for trimmed turns
When the chat limit unloads a turn's content (user message + chunks),
the segment disappears and the turn-metrics row was lost. Now unmatched
entries (fully trimmed turns) emit a standalone turn-metrics row at the
top of the transcript, so the user still sees 'turn N · X tok' for
unloaded turns.
Note: trimming during generation only affects COMMITTED chunks (old
turns). Provisional chunks (the in-flight turn) are never trimmed — the
big trim happens at seal when provisional → committed. This is by design.
Diffstat (limited to 'src/core/wire/conformance.ts')
0 files changed, 0 insertions, 0 deletions
