/restart does not work with --name

Open Beginner friendly
#3,332 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
shell
Domain
cli

Research direction

Reproduce the issue with copilot --name foo followed by /restart, then trace the /restart entry point and how --name and --resume arguments are assembled. Done means restarting a named session no longer exits with the conflicting-option error.

Written by the indexing model from the issue text.

Description

area:sessions
Describe the bug

GitHub Copilot CLI 1.0.48.

Repo steps:

  1. copilot --name foo
  2. /restart

Expected: restart

Actual: exit, fail to start

C:\Users\zhaoyangli> copilot --name foo

  ╭─╮╭─╮   Changes   +0 -0
  ╰─╯╰─╯   AI Units  0 (16s)
  █ ▘▝ █   Resume    copilot --resume="foo"
   ▔▔▔▔

error: option '-n, --name <name>' cannot be used with option '--resume[=value]'
C:\Users\zhaoyangli>
Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/copilot-cli

All issues in github/copilot-cli

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.