mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why Sending the terminal's default cursor shape can overwrite a shape already set by the host, even when Codex never requested a custom shape. ## What changed Leave the cursor shape alone during draws that use the default shape until Codex applies an override. Track whether an override was applied so cleanup resets the shape only when needed and still makes the cursor visible. ## Testing Check that default sessions and sessions using terminal scrollback emit no cursor-shape reset. Keep exercising cursor repair with an explicit shape override. GitOrigin-RevId: 1f6f1cad0bfc04307896cea1d75b9535fc21031d