Normalize whitespace-only lines in agent messages (#34772)

## What changed

Apply the existing whitespace-only line normalization to both streaming and
finalized agent Markdown. Blank lines now discard indentation and stale
hyperlinks while preserving their line style.

GitOrigin-RevId: f6150190b02f8cd8c853220cae1a2dcd2f4578a5
This commit is contained in:
Eric Traut authored and copyberry committed 2026-07-22 15:34:11 +00:00
1 parent 9ee63da142
commit c00e2e851c
6 files changed
+33 -26

No files matched your search

@@ -5,7 +5,7 @@ expression: "rendered.lines.iter().map(rendered_line_text).collect::<Vec<_>>().j
latest user question
• Final answer:
Pattern Outcome
━━━━━━━━━━━━ ━━━━━━━━━━━
Table tail Preserved
@@ -5,7 +5,7 @@ expression: "rendered.lines.iter().map(rendered_line_text).collect::<Vec<_>>().j
latest user question
• Final answer:
Pattern Outcome
━━━━━━━━━━━━ ━━━━━━━━━━━
Table tail Preserved