Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

/exit command ending session rather than exiting the running CLI

Open Beginner friendly
#4,996 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
shell
Domain
cli

Research direction

Reproduce the behavior by starting the CLI, creating a new session with /new, and entering /exit. Trace the command handling for /exit and the session lifecycle to identify why it returns to the base session. Done means /exit closes the CLI process from any session and returns to the original command window, with coverage for the reported sequence.

Written by the indexing model from the issue text.

Description

area:sessions
Describe the bug

Using the command /exit is not quitting the current running cli instance and is instead closing the current session I have running rather than exiting the CLI

Affected version

No response

Steps to reproduce the behavior

Start CLI
Perform actions in base session
Type "/new" to begin a new session with clean context
Perform actions in new session
Type "/exit" to close the CLI as I am done with it

Rather than exit the CLI the latest session is closed and I am returned to the original base session and have to type "/exit" again

Expected behavior

The running instance of copilot CLI will close and will be present with the original cmd window I used to start the cli

Additional context

No response

Dominant language
Shell
Stars
11.3k
Forks
2k
PR merge metrics
No merged PRs in 30d

Getting set up

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.