summaryrefslogtreecommitdiffhomepage
path: root/src/core/chunks
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-22 03:38:07 +0900
committerAdam Malczewski <[email protected]>2026-06-22 03:38:07 +0900
commit8c4abd54390dc3ad73b88e8b2349118aa61c4b44 (patch)
treea201f120d2801fdcac522c6ef41cf0bc9a0c13a2 /src/core/chunks
parente9a200e39d240e78b36b20a97a4d016888f9288c (diff)
downloaddispatch-web-8c4abd54390dc3ad73b88e8b2349118aa61c4b44.tar.gz
dispatch-web-8c4abd54390dc3ad73b88e8b2349118aa61c4b44.zip
fix(metrics): stepId-based segment matching — robust against chat-limit trimming
When the chat limit trims old chunks, head-aligning turn metrics to segments by position breaks (a trimmed user message removes a segment boundary, shifting all subsequent alignments by one). Fix: match segments to metrics entries by stepId overlap (pass 1), falling back to sequential matching for text-only segments with no stepId-bearing groups (pass 2). This prevents step/turn metrics from being placed on the wrong segment after trimming, while preserving the original behavior for text-only turns. 686 tests green.
Diffstat (limited to 'src/core/chunks')
0 files changed, 0 insertions, 0 deletions