Skip to content

Add a method to /exit from Copilot CLI regardless of nested sessions #4874

Description

@matsest

Describe the feature or problem you'd like to solve

Add a method to /exit from Copilot CLI regardless of nested sessions

Proposed solution

Add a /exit behavior that gracefully terminates the current Copilot CLI, either by changing the /exit behavior, adding a subcommand or adding a separate command.

Example prompts or workflows

N/A

Additional context

When using a Copilot CLI session, and running several /new sessions after completing unrelated work, invoking the /exit command will currently exit the current session and show the previous one - instead of existing Copilot CLI.

This matches behavior matches with the current docs:

/exit, /quit: Close the current session. If other sessions are running, this foregrounds the newest remaining one instead of quitting. Quits the CLI only when it is the last open session. /exit print always tears down the CLI and offers to dump the transcript.

To fully close Copilot CLI after multiple /new turns on either has to run /exit multiple times or terminate the process.

Activity

  1. added theissue type on Sep 16, 2026
  2. added
    area:sessionsSession management, resume, history, session picker, and session state
    and removed on Nov 16, 2026
  3. copilot-cli-bot commented on Nov 21, 2026

    @copilot-cli-bot

    This appears to be resolved as of GitHub Copilot CLI v1.0.114. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

  4. Tak2121 commented on Nov 21, 2026

    @Tak2121
  5. omidimani869 commented on Nov 21, 2026

    @omidimani869

    @سلام از پلیس فتا تهران کمک گرفتم ممنونم ولی از شما هم ممنونم

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sessionsSession management, resume, history, session picker, and session state

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions