Skip to content

fix: tmux extended-keys-format csi-u for Pi modified keys - #26

Merged
thecodeassassin merged 1 commit into
mainfrom
fix/tmux-extkeys-csi-u
Jun 22, 2026
Merged

fix: tmux extended-keys-format csi-u for Pi modified keys#26
thecodeassassin merged 1 commit into
mainfrom
fix/tmux-extkeys-csi-u

Conversation

@thecodeassassin

Copy link
Copy Markdown
Contributor

Pi warns: tmux extended-keys-format is xterm. Pi works best with csi-u. ExitBox's generated tmux config enabled extended-keys on and advertised the extkeys feature, but never set extended-keys-format, so tmux used its default xterm encoding for modified keys. Pi (and other Kitty-protocol agents) can't decode that encoding, so Shift+Enter was lost — while agents that tolerate the xterm encoding kept working (explains "all other agents fine, just not Pi").

Fix

Add set -g extended-keys-format csi-u to the generated tmux config (the fixterms/CSI-u encoding Pi expects). Pairs with the existing extended-keys on + terminal-features "*:extkeys".

Tests

Added a write_tmux_conf assertion for extended-keys-format csi-u. Entrypoint suite: 106 pass, 2 pre-existing failures (codex session-storage env leakage on main, unrelated).

Note: entrypoint ships in the base image — needs an image rebuild to take effect. If exitbox is run from inside another (host) tmux, that outer tmux must carry the same extended-keys on / extended-keys-format csi-u / terminal-features *:extkeys settings, or it strips modified keys before they reach the container.

@thecodeassassin
thecodeassassin merged commit 306277d into main Jun 22, 2026
7 checks passed
@thecodeassassin
thecodeassassin deleted the fix/tmux-extkeys-csi-u branch June 22, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant