tmux/Bug/Vim Right Pane Insert Shows Up in Left Pane
Problem Summary
- In a tmux + Vim/Neovim workflow running inside iTerm2 on macOS, keyboard input typed in the right pane is visually rendered in the left pane.
- This is not synchronize-panes (confirmed off).
- The issue makes Vim nearly unusable because typed characters appear in the wrong pane despite focus being correct.
Environment
Observed Behavior
What Is Not the Cause
Most Likely Root Cause
- Terminal focus-event or extended key negotiation desync between:
- tmux 3.6 tightened terminal feature negotiation, including:
- iTerm2 partially supports some of these but can enter a bad state where:
- The symptom (input displayed in wrong pane but not truly sent there) matches known focus-event and extended-key glitches.
Hypothesis Ranking
Reproduction Isolation Plan
Deep Diagnostic Commands
Underlying Technical Explanation
Recommended Fix Order
Most Probable Final Fix
Next Steps
- Investigate rendering desync between tmux 3.6a and iTerm2 involving focus-events, extended-keys, and alternate-screen negotiation.
- Reproduce in clean tmux instance.
- Systematically disable:
- Test with downgraded
default-terminal. - Determine whether issue is configuration-induced or iTerm2 feature negotiation incompatibility.