fix: filter out SESSION START / SESSION END marks in parse_structured_bin, and also add status feedback.

This commit is contained in:
serversdwn
2026-03-11 16:42:50 -04:00
parent 6d99f86502
commit 6be434e65f
2 changed files with 11 additions and 4 deletions

View File

@@ -344,9 +344,13 @@ def parse_structured_bin(bin_blob: bytes) -> list[MarkSplit]:
s3_bytes += length
elif rec_type == _REC_MARK:
label = payload.decode("utf-8", errors="replace")
marks.append(MarkSplit(label=label,
bw_byte_offset=bw_bytes,
s3_byte_offset=s3_bytes))
# Skip auto-generated bridge lifecycle marks — only keep user marks
if label.startswith("SESSION START") or label.startswith("SESSION END"):
pass
else:
marks.append(MarkSplit(label=label,
bw_byte_offset=bw_bytes,
s3_byte_offset=s3_bytes))
pos = payload_end