mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +00:00
fix(ui): coalesce leaves only when truly adjacent in original stream
PR-Agent flagged that the previous derive-trace-groups split entries into trace and leaf buckets *before* coalescing leaves. That meant two identical no-requestId entries separated by other rows in the real stream would still merge into a single `×N` row, hiding signal. Walk `entries` in input order with single-pass coalescing: a leaf only extends the previous leaf when no other entry (trace child or otherwise) appeared between them. Trace children still gather across interleaving since they're identified by `requestId`. Group children get sorted ts-ascending for trace-timeline display, with the group's positional ts pinned to the oldest child for the reverse-chrono display sort. Refs #1138, #1151
This commit is contained in:
Binary file not shown.
Reference in New Issue
Block a user