Shell command completion never detected when running inside tmux (output appears, but command reported "still running" forever)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
Describe the bug
When Copilot CLI runs inside a tmux session, shell tool commands execute and their output appears correctly, but the CLI never detects command completion. Even a trivial echo hello prints hello and then hangs indefinitely as "still running"; it must be manually stopped. Running the CLI outside tmux, the identical command completes immediately (exit code 0).
This is independent of tmux version and config. See matrix below.
What this is NOT
Not the unfocused-pane keystroke bug (#4213): output is delivered fine and this is not about input/enter. This is specifically completion/exit detection of shell tool commands.
Reproduction matrix
| Condition | Result |
|---|---|
| Inside tmux 2.7 | hangs -> "still running" forever |
Inside tmux 3.3a (escape-time 0, allow-passthrough on) |
hangs |
| Outside tmux | echo hello -> completes, exit 0 |
Affected version
1.0.74-1 (also seen on prior versions starting from 1.0.70). Version 1.0.69 is unaffected
Steps to reproduce the behavior
- Start Copilot CLI inside a tmux pane.
- Have the agent run a shell command, e.g.
echo hello. - Output
helloappears, but the command is reported "still running" indefinitely; onlystopclears it. - Exit tmux, repeat the same command. It completes normally with exit code 0.
Expected behavior
Shell command completion/exit should be detected the same inside and outside tmux.
Additional context
Environment
- Copilot CLI: 1.0.74-1 (also seen on prior version)
- OS: Linux
- Shell: /bin/bash,
TERM=xterm-256color - tmux: reproduced on 2.7 and 3.3a
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Problem innerhalb und außerhalb von tmux mit echo hello zu reproduzieren, und vergleiche dabei die Vervollständigung des Shell-Befehls und den Exit-Status. Verfolge die Erkennung der Vervollständigung von Shell-Befehlen durch die CLI und ermittle, warum sich tmux anders verhält; abgeschlossen ist die Aufgabe, wenn der Befehl in beiden Umgebungen die Vervollständigung und den Exit-Code 0 meldet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- bash, shell
- Bereich
- cli, operating-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100