mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why An unfinished Markdown link can display its destination across multiple preview rows, then collapse when the closing parenthesis arrives. ## What changed Keep the link label visible while withholding the opening parenthesis and destination until the link closes. Scan incoming text incrementally, accounting for nested parentheses, escapes, angle-bracket destinations, titles, and inline code. Apply this holdback only to rich prose previews; newline commitment and finalization still render the original source. ## Testing Add regression tests for character-by-character input, long Unicode destinations, resizing, raw-mode switching, and flushing unfinished links on newline or completion, plus a snapshot of the label-only preview. GitOrigin-RevId: 9cea680a93dfcd0aea21f0fc12006b27400d4dab