summaryrefslogtreecommitdiffhomepage
path: root/src/core/protocol
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-22 12:17:08 +0900
committerAdam Malczewski <[email protected]>2026-06-22 12:17:08 +0900
commit32cf1b6c4902e89247ff6a6b76100c41e0196d57 (patch)
tree76595daba241c611005407d559240bc865882758 /src/core/protocol
parentcc3a1cecd8c0c17e3f9bb65757d756358d517f94 (diff)
downloaddispatch-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/protocol')
0 files changed, 0 insertions, 0 deletions