copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

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

Open matsest opened this issue 2 months ago • 3 comments

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.

matsest avatar Sep 16 '26 12:09 matsest

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.

copilot-cli-bot[bot] avatar Nov 21 '26 09:11 copilot-cli-bot[bot]

سلام بخدا به غلط کردن افتادم که چرا این برنامه رو نصب کردم الان میخوام از توکن خودم استفاده کنم نقدش کنم نمیتونم ولی از پلیس فتا کمک گرفتم تا کمکم کنن

در تاریخ شنبه ۲۱ نوامبر ۲۰۲۶،‏ ۱۳:۲۴ copilot-cli-bot[bot] < @.***> نوشت:

Closed #4874 https://github.com/github/copilot-cli/issues/4874 as completed.

— Reply to this email directly, view it on GitHub https://github.com/github/copilot-cli/issues/4874?email_source=notifications&email_token=BMBZYCQ6TSIUI3VF52Y7II352FQ3TA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGNRYGUYTKOJXGE3TJJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#event-36851597174, or unsubscribe https://github.com/notifications/unsubscribe-auth/BMBZYCV4AYOWXXHMIWFPUSL52FQ3TAVCNFSNUABFKJSXA33TNF2G64TZHM2TQNJYGYYDMNRUHNEXG43VMU5TKNBXGQ3TSMRUGE2KC5QC . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Tak2121 avatar Nov 21 '26 11:11 Tak2121

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

omidimani869 avatar Nov 21 '26 11:11 omidimani869