refactor(session-turn-outline): bound oversized preview blocks, degrade malformed previews

preview() now slices a single text block to limit * 2 before joining and normalizing, so one multi-megabyte block no longer pays a full-string pass; the host pr

Update

preview() now slices a single text block to limit * 2 before joining and normalizing, so one multi-megabyte block no longer pays a full-string pass; the host projection and the client turn-navigation helper stay mirrored. outlineEntry keeps dropping entries with damaged turn/seq (marks cannot exist or jump without them) but degrades malformed prompt/response previews to empty strings so the turn s

Date
2026-08-30
Version
master@b7053eb
commit
b7053eb

View commit on GitHub

preview() now slices a single text block to limit * 2 before joining and normalizing, so one multi-megabyte block no longer pays a full-string pass; the host projection and the client turn-navigation helper stay mirrored. outlineEntry keeps dropping entries with damaged turn/seq (marks cannot exist or jump without them) but degrades malformed prompt/response previews to empty strings so the turn s