mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
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:
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.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user