mirror of
https://github.com/openai/codex.git
synced 2026-10-21 17:48:44 +00:00
## Why Codex could enable mouse capture even when the containing tmux session had mouse support turned off. ## What changed - Probe tmux's `mouse` and `extended-keys-format` settings together, targeting `TMUX_PANE` when available. - Suppress mouse capture when tmux explicitly reports `0` or `off`, and apply that policy across fullscreen and overlay input changes. Refresh the policy when entering or restoring the alternate screen. - Preserve normal mouse behavior when the probe fails or the setting is unknown, and retain the keyboard-format fallback for older tmux versions. ## Testing Add tests for pane targeting, explicit and unknown mouse settings, probe failures, keyboard fallback, and mouse-policy changes across fullscreen and overlays. GitOrigin-RevId: 7bdd2759207b30a3877e983b489462de7c96e692