mirror of
https://github.com/openai/codex.git
synced 2026-09-02 14:49:14 +00:00
## Why A pasted user message can contain a raw CSI sequence that corrupts terminal scrollback, making the latest response or input appear missing. The same sequence may already be present in persisted history when an affected conversation is resumed. ## What changed - Remove CSI sequences and non-whitespace control characters from explicit paste input before it enters the composer. - Apply the same small transform before rich and raw `UserHistoryCell` rendering, so existing conversations render safely without mutating stored message content.