mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## What changed - Use a shared preview renderer for agent command output and MCP results, showing the first three wrapped rows with a hidden-line count and `ctrl + t` transcript hint. - Apply one preview budget across all MCP result blocks. Count partially displayed logical lines as hidden and hard-wrap long URLs to fit the available width. - Preserve complete MCP result text in transcript and raw output, including trailing failure diagnostics. - Bound preview input before wrapping to limit work on very long lines and combining characters. ## Testing Add unit tests and snapshots for wrapped output, hidden-line counts, blank lines, combining characters, shared MCP block limits, transcript preservation, and matching streamed and completed command previews. GitOrigin-RevId: bd3c2ec40ee837dc8a7a171aaf91577a0ac50985