You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: /restart fails in sessions created with -w #4493
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 -wCreated 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 -w option, allowing Copilot CLI to generate the worktree name.
Activity