github / github/copilot-cli

bug: /restart fails in sessions created with -w

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

Nadie ha tomado este issue todavía.

area:sessions
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

A Copilot CLI session started with copilot -w cannot recover after running /restart inside the session. The restart attempts to use both the worktree option and the existing session ID, which results in an option conflict.

Affected version

1.0.80

Steps to reproduce the behavior
  1. From any Git repository, start Copilot CLI with an automatically created worktree:

    $ copilot -w
    Created worktree at /path/to/repo.worktrees/<generated-name> (branch <generated-name>)
    
  2. Inside the session, run /restart.

  3. Observe the error:

    error: option '-w, --worktree[=name]' cannot be used with option '--session-id <id>'
    
Expected behavior

/restart should restart or resume the current session successfully while retaining the existing worktree, without passing -w in conflict with --session-id.

Additional context
  • Operating system: macOS
  • Shell: zsh
  • The session was started with the bare -w option, allowing Copilot CLI to generate the worktree name.

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

Empieza por el manejo de /restart y la construcción del comando para las sesiones iniciadas con copilot -w. Reproduce el conflicto siguiendo los tres pasos del issue e inspecciona cómo se combinan -w y --session-id. Se considera completado cuando /restart reanuda la sesión actual, conserva el worktree generado y no se produce el conflicto entre opciones.

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

Evaluación

Stack tecnológico
shell
Área
cli
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
68/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.