perf(process): stop padding rendered terminal lines to full width (#1450)

Rendered frames padded every visible row with trailing spaces to the
terminal width. Blank rows cost a full row each and every frame repeats
them, so the padding made up 14-39% of capture Evidence (2 KB of sparse
output produced 228 KB). The padding carried no information: columns is
recorded and serialized_state keeps the exact terminal state.

Lines are now trimmed after normalization, so line.padEnd(columns)
restores the previous value. The comparison contract commits
rendered_line_format so older padded captures do not compare as the
same contract.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-09 23:18:13 -07:00
committed by GitHub
co-authored by Claude Opus 5.5
parent c89c8f5318
commit 2781cad201
5 changed files with 66 additions and 6 deletions
+1
View File
@@ -108,6 +108,7 @@ export const processComparisonContract = (
...(scenario.normalization.ports
? { port_normalization_version: "contextual-endpoints-v2" }
: {}),
rendered_line_format: "trailing-spaces-trimmed-v1",
});
/**