Branching a session into a copy you can take somewhere else, and going back to an earlier point. Subagents that start from your conversation are on the Subagents page.
Worktrees: create, set up, integrate and clean up isolated checkouts
| Question | pichecked at 1.2.0 |
|---|---|
| Fork a session | Yes, three ways.
1.5.2 adds missing-folder recovery: interactive startup, /resume and session switching offer Continue, Fork or Cancel when the stored cwd is gone. Continue uses the current folder without rewriting the source; Fork copies the full session into a new ID/header with the current cwd and parentSession pointing to the source. Non-interactive startup still errors unless an explicit fork is selected. The interactive switch removes a fork if an extension cancels the switch. Source inspection at v1.5.2; no runtime probe. |
| Fork or rewind from an earlier point | Yes. Set |
| What the fork keeps |
|
| File changes and worktrees | Not supported No. Forking, cloning and moving around |
| Where a fork came from | A session made by |
| Fork from the SDK or API | Yes. In the SDK, Extensions can cancel or react to a fork through the |