Study FAQ
Does forking a Copilot conversation isolate its file changes?
Also asked as 2
- Will a forked Copilot discussion use a separate workspace automatically?
- How can I preserve an alternative Copilot conversation without assuming its files are isolated?
Answer
A conversation fork preserves a separate discussion path; it does not universally isolate files. In VS Code, a Copilot worktree session's fork uses the original worktree, so both conversations can affect the same files.
In VS Code, type /fork to copy the full conversation, or use Fork Conversation on an earlier request to copy history through that point. Inspect the resulting workspace before asking either conversation to edit. If implementation changes must stay separate, choose a supported separate worktree or workspace arrangement rather than relying on the fork's title.
In the GitHub Copilot app, /fork requires an active session and forks at its latest turn. Do not assume it provides VS Code's earlier-request action or another client's rewind options.
In Copilot CLI, /fork can preserve a copy before an irreversible rewind. That copy preserves conversation history; any intended file-state separation still needs explicit verification. For all clients, distinguish retaining the original discussion from recovering files or reversing external actions.
References: Manage agent sessions in VS Code, Slash commands for the GitHub Copilot app - GitHub Docs, GitHub Copilot CLI command reference - GitHub Docs.
Full explanation
GH-700: Recover Copilot Work with Checkpoints and Session History
Study guide · GH-700
Read the full explanation