bug: /restart fails in sessions created with -w
Nadie ha tomado este issue todavía.
- 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
-
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>) -
Inside the session, run
/restart. -
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
-woption, allowing Copilot CLI to generate the worktree name.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- 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