Commit ec924e6
Fix Linux terminal echo loop by wrapping shell with
The Linux fallback path used `bash -i` with piped stdio, which caused
typed characters to echo back through stdout and produce looping
output. Now wraps the shell with `script -qfc` (util-linux) to
provide a real PTY when node-pty isn't available.
Falls back to the previous direct-bash mode if `script` isn't installed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>script (v0.7.2)1 parent 7ab955a commit ec924e6
2 files changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4971 | 4971 | | |
4972 | 4972 | | |
4973 | 4973 | | |
4974 | | - | |
| 4974 | + | |
| 4975 | + | |
| 4976 | + | |
4975 | 4977 | | |
4976 | | - | |
| 4978 | + | |
| 4979 | + | |
| 4980 | + | |
| 4981 | + | |
| 4982 | + | |
| 4983 | + | |
| 4984 | + | |
| 4985 | + | |
| 4986 | + | |
| 4987 | + | |
| 4988 | + | |
| 4989 | + | |
| 4990 | + | |
4977 | 4991 | | |
4978 | 4992 | | |
4979 | 4993 | | |
| |||
0 commit comments