mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why The terminal's bidirectional layout was already used for scrollback, but full-screen transcripts could still show mixed right-to-left and left-to-right text in source order. ## What changed Use the terminal's bidirectional layout setting in the live transcript, history pager, and resume picker previews. Reorder each wrapped row for display and map its screen columns back to the source graphemes. This keeps hyperlink hit targets and search highlights aligned with the displayed text. Mouse selection follows the displayed glyphs, while copying preserves source order. ## Testing Add regression coverage for mixed Arabic, Hebrew, and Latin text across terminal widths, including link hit targets, highlights, and logical text order. Exercise mouse and keyboard selection and verify right-to-left rendering in the resume picker preview. GitOrigin-RevId: ea0518ea8791d0fcc031dd0ebf306775918f373b