Commit 967eb91
fix(ws): avoid shell init prompts eating command keystrokes after respawn-pane
After tmux respawn-pane, zsh plugins like oh-my-zsh can show interactive
prompts (e.g. "Would you like to update? [Y/n]") that consume the first
character(s) of send-keys input, causing "clear" to become "lear".
Instead of send-keys, pass the command directly to respawn-pane as a
shell argument, followed by `exec $SHELL` to drop into an interactive
shell when the command exits. This bypasses the input buffer entirely.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7e6b8b2 commit 967eb91
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1510 | 1510 | | |
1511 | 1511 | | |
1512 | 1512 | | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
1516 | 1519 | | |
1517 | 1520 | | |
1518 | 1521 | | |
| |||
1962 | 1965 | | |
1963 | 1966 | | |
1964 | 1967 | | |
1965 | | - | |
1966 | | - | |
1967 | | - | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
1968 | 1974 | | |
1969 | 1975 | | |
1970 | 1976 | | |
| |||
0 commit comments