Files
codex/codex-rs/tui
Eric Traut 988e85bd55 Honor tmux mouse changes while the TUI is in alternate screen (#63195)
## Why

tmux doesn't notify panes when its `mouse` option changes. Codex read
the option on screen entry, so toggling it while an alternate screen
was open could leave mouse capture out of step with the tmux setting.

## What changed

Poll the containing tmux session's `mouse` option in the background
while the alternate screen is active. Redraw on changes, even when the
TUI is idle, and reapply mouse capture for the current screen, including
nested screens such as `/resume`.

When tmux turns mouse capture off, discard queued mouse events and end
active drags and pending clicks while preserving selected text.

## Testing

Cover idle redraws on mouse changes, stale and failed probes, capture
updates across fullscreen and overlay modes, and late releases after
capture ends.

GitOrigin-RevId: a502a5e78bbc887adfe080ba2da4dbe8910f2420
2026-11-22 21:20:40 +00:00
..