mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
## Why Releasing TUI input modes previously disabled alternate scrolling unconditionally, overriding terminals where it was initially enabled. ## What changed - Query alternate-scroll mode (`1007`) during the Unix startup probe and filter its replies from replayed input. - Restore the recorded mode during editor handoff and exit, defaulting to disabled when the initial state is unknown. - Retry scroll-mode restoration after a failed cleanup write. ## Testing Extend startup probe tests to parse enabled and disabled reports. Add coverage for preserving both initial states across handoff and exit, and retrying failed restoration. GitOrigin-RevId: 786a44c04da6e2c9cb9af73c096d8df92ded88e9