Copilot CLI resume: --continue, --resume, /resume, and which session comes back
- copilot
- coding-agents
- agent-ops
To resume a session in GitHub Copilot CLI you get two flags. copilot --continue reopens your latest session in this folder, and copilot --resume gives you a picker, or jumps straight to a session if you hand it an ID, an ID prefix or a name. In a running session, /resume shows the same list. There's no copilot resume subcommand. I wrote this for people who already resume sessions in Claude Code. I don't run Copilot CLI myself, so all of it is from the GitHub docs and the CLI changelog up to 1.0.106, read on 6 November 2026.
copilot --continue # most recent session, this folder first
copilot --resume # picker, needs a terminal
copilot --resume=SESSION-ID # ID, ID prefix or exact name
copilot --resume="my feature" # by name
copilot --name "checkout refactor" # name a new session for later
- Last session.
--continuetakes the newest session from the current working directory. Per the command reference, with none there it falls back to the newest session anywhere. The how-to and the changelog word this differently. - Previous session.
--resume, short-r, opens a picker. With a value it matches an ID, an ID prefix or a name. - Inside a session.
/resumeand its alias/continueopen the picker or take an ID. - Where it lives. One folder per session ID under
~/.copilot/session-state/, with anevents.jsonllog. - How I know. Docs and changelog only. Copilot CLI is not installed on my machine, so I tested nothing.
How Claude Code does this, with six entry points and a lookup across projects, is in my claude --resume post. This one is the Copilot CLI side.
How do I resume the last Copilot CLI session?
Run copilot --continue from the project folder. Here's how the command reference puts it: "Resume the most recent session in the current working directory, falling back to the globally most recent session." So if a folder has no sessions, you get your newest one from some other folder, not a fresh one. That's what the sentence says. I haven't seen it happen.
The three sources don't say the same thing. The reference, quoted above, says working directory with a global fallback. Per the changelog, --continue started to prefer the current working directory in 1.0.35, and in 1.0.64 both flags began to "select the most recent session for the current repository". The how-to page says "the most recently closed local session". I go by the reference, the newest of the three pages, but I can't tell which wording matches the CLI today.
How do I resume a previous Copilot CLI session by ID or name?
Give it to --resume. Per the reference, the flag takes "a session ID, ID prefix, or session name". Names have to match exactly, though case doesn't matter. If no name matches, the CLI falls back to the auto-generated summary. Seven or more hex characters of the ID do the job, per the 1.0.32 changelog.
Names come from copilot --name at launch or /rename inside a session. /session id shows the current ID and copies it. The ID also appears when you exit. A -p run prints a copilot --resume=SESSION-ID hint in its exit summary.
--session-id is the strict version. It wants an exact ID. If nothing matches, it creates a new session, but only for a valid UUID. A name or a prefix never creates one.
What is the Copilot CLI resume command inside a session?
It's /resume, and /continue does the same thing. In the reference's words: "Switch to a different session by choosing from a list (optionally specify a session ID)." By default the picker sorts by relevance, meaning how close a session is to the current working directory. s cycles the sort through created, name and last used, Tab flips between local and remote sessions, and x deletes the selected one, per the reference. The multiple sessions page says d.
The multiple sessions page adds two views: a sidebar with recent sessions, and a Sessions tab. You open that one with /session, and it searches your whole history, cloud sessions too. /new starts fresh and /fork copies the current session into a new one.
What happens when I resume a Copilot CLI session in another directory?
It goes back to the folder it was saved in. From the 1.0.52 changelog: "Sessions now resume in their saved working directory; pass -C <dir> to override." The reference adds that relative paths in --add-dir and --plugin-dir resolve against that saved folder too.
So the folder you type in decides which session --continue picks. It does not decide where that session then works. Codex asks which folder to use, per my codex resume post. Copilot CLI takes the saved one and lets -C win. --worktree cannot be combined with --resume or --continue. Where --worktree puts the checkout is in Copilot CLI worktree.
Does a resumed Copilot CLI conversation keep its history and settings?
The history comes back in full. The session data how-to says "Copilot loads the full conversation history, so you can continue exactly where you left off." Per the multiple sessions page, a session also holds state such as the working directory, approvals and the mode.
The mode comes back too. The configuration reference says "Resumed sessions keep their own mode" for defaultMode and for defaultPermissionMode. For the model, the managed settings table says a default model is "overridden by the --model flag or a resumed-session model". The changelog also mentions a warning "when a saved model is automatically replaced on resume", without saying when that happens. Other settings I did not trace. In 1.0.106, dated 5 November 2026, --yolo and --allow-all "now take effect when resuming a local session". I read that as the flags being ignored on a resume before. What they grant is in Copilot CLI allow all tools. --trust-folder cannot be combined with a resume. Folder trust for hooks is in Copilot CLI hooks.
After a crash, the CLI can offer to restore sessions that were still open. For now that is opt-in with COPILOT_ENABLE_INTERRUPTED_SESSION_RESTORE=1.
Where does Copilot CLI save sessions?
Copilot CLI keeps them in ~/.copilot/session-state/, a subfolder per session ID. Per the configuration directory reference, each of those "stores an event log (events.jsonl) and workspace artifacts (plans, checkpoints, tracked files)", and that's what --resume and --continue read from. A SQLite file next to it, session-store.db, indexes sessions for search and /chronicle. COPILOT_HOME moves the whole ~/.copilot folder.
Delete session-state/ and the history is gone. In the reference's words: "You will no longer be able to resume past sessions." Sessions synced to your GitHub account live somewhere else, so wiping the local files leaves those alone.
How does Copilot CLI resume compare with claude --resume?
| Task | Claude Code | Copilot CLI |
|---|---|---|
| Newest session here | claude --continue | copilot --continue, falls back to the newest anywhere |
| Pick from a list | claude --resume | copilot --resume or -r |
| One session | claude --resume <id> or a name | --resume=<id, prefix or name>, or --session-id <uuid> |
| Switch inside | /resume | /resume, /continue |
| Name a session | claude -n <name>, /rename | copilot --name, /rename |
| Copy instead of continue | --fork-session | /fork inside a session |
| On disk | One .jsonl per session under ~/.claude/projects/ | A folder per session with events.jsonl under ~/.copilot/session-state/ |
So the words carry over almost one to one. opencode is the odd one out with no resume subcommand, see opencode resume. Gemini CLI has no --continue at all, see Gemini CLI resume.
Frequently asked questions
Is there a copilot resume command?
Not as a subcommand. The command table in the reference has no copilot resume. Resume is the --resume flag, short -r, plus the /resume slash command inside a session.
How do I resume a previous Copilot CLI session from a script?
Use an explicit ID, or --continue. Under -p, bare --resume exits with an error when more than one session exists. The reference says to "pass an explicit --resume=SESSION-ID or use --continue." The -p exit summary prints that ID for you.
Did you test this?
No. Copilot CLI is not installed on my machine. This post reads the GitHub Copilot CLI docs and the changelog up to 1.0.106 on 6 November 2026. The Claude Code column comes from its sessions docs, as quoted in my earlier post.
The verdict
Coming from Claude Code, the names carry over. --continue and --resume do what you expect. Two things differ. Per the reference, --continue reaches past the current folder when it finds nothing there. A resumed session goes back to its saved folder unless you pass -C. Name the sessions you plan to come back to. In scripts, resume by ID.
Sources, read on 6 November 2026. GitHub docs: the command reference, the configuration directory reference, the CLI how-to, Working with multiple sessions and Using session data. Versions come from the github/copilot-cli changelog. Claude Code commands come from its Manage sessions page.