Commit 8718bd0
fix(ws): wait for shell ready before sending commands after respawn-pane
The fixed 0.5s sleep after tmux respawn-pane was not enough time for
zsh to fully initialize (especially with plugins/themes). This caused
send-keys to fire while the shell was still loading, eating the first
character(s) of the command (e.g. "clear" became "lear").
Replace with a poll loop that waits for the shell process to appear in
the pane, then adds a small buffer before sending keys.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7e6b8b2 commit 8718bd0
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
1514 | | - | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
1515 | 1521 | | |
1516 | 1522 | | |
1517 | 1523 | | |
| |||
1963 | 1969 | | |
1964 | 1970 | | |
1965 | 1971 | | |
1966 | | - | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
1967 | 1979 | | |
1968 | 1980 | | |
1969 | 1981 | | |
| |||
0 commit comments