github / github/copilot-cli

Shell command completion never detected when running inside tmux (output appears, but command reported "still running" forever)

Ouverte
#4,223 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

area:tools
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

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
  1. Start Copilot CLI inside a tmux pane.
  2. Have the agent run a shell command, e.g. echo hello.
  3. Output hello appears, but the command is reported "still running" indefinitely; only stop clears it.
  4. 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

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par reproduire le problème dans tmux et en dehors de tmux avec echo hello, en comparant la détection de fin de la commande shell et le code de sortie. Suivez la détection de fin des commandes shell par la CLI et identifiez pourquoi tmux se comporte différemment ; c'est terminé lorsque la commande indique qu'elle est terminée et renvoie le code de sortie 0 dans les deux environnements.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
bash, shell
Domaine
cli, operating-systems
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
52/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.