fix(coding-agent): skip tmux extended-keys warning when tmux is unreachable (#2311)

When running inside a sandbox (e.g., bubblewrap) that blocks access
to the tmux socket, the tmux query hangs and times out, returning
undefined. Previously this was treated as "extended-keys is off",
showing a false warning. Now we skip the warning when the tmux server
can't be reached.
This commit is contained in:
Gabriel Goller
2026-03-17 22:15:25 +01:00
committed by GitHub
Unverified
parent bce2df3e2d
commit 9fc11921e4
@@ -626,6 +626,9 @@ export class InteractiveMode {
runTmuxShow("extended-keys-format"),
]);
// If we couldn't query tmux (timeout, sandbox, etc.), don't warn
if (extendedKeys === undefined) return undefined;
if (extendedKeys !== "on" && extendedKeys !== "always") {
return "tmux extended-keys is off. Modified Enter keys may not work. Add `set -g extended-keys on` to ~/.tmux.conf and restart tmux.";
}