mirror of
https://github.com/openai/codex.git
synced 2026-11-09 08:40:33 +00:00
## Why Task details displayed prompts as plain text and flattened agent messages, losing Markdown formatting and layout. ## What changed Render prompt and last-message previews as Markdown at the details panel width, using the source thread's working directory. Preserve newlines and tabs within the 512-character preview limit, strip other control characters, and unwrap Markdown fences around agent messages. Keep prompts limited to two rendered lines and wrap long code lines to fit the panel. ## Testing Add snapshots for Markdown formatting, long lines, and tables; verify cached and live messages render identically; and test preview layout preservation, control-character filtering, and Unicode character limits. GitOrigin-RevId: b605d3f5920f0d15cc7682f45988a2e933e00602