github / github/copilot-cli

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

Abierto
#4,223 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

area:tools
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza reproduciendo el problema dentro y fuera de tmux con echo hello, comparando la finalización del comando de shell y el estado de salida. Rastrea la detección de finalización de comandos de shell de la CLI e identifica por qué tmux se comporta de forma diferente; se considera terminado cuando el comando informa de que ha finalizado y del código de salida 0 en ambos entornos.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
bash, shell
Área
cli, operating-systems
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
52/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.