feat(session): harden fork-session branching (#1801)

* feat(session): harden fork-session branching

Add explicit fork-session branching metadata, preserve fork-owned transcript state, and seed retained content replacement records for forked resumes.

Document --fork-session behavior and cover forked resume transcript/materialization behavior with focused tests.

* fix(session): respect print persistence for fork seeding
This commit is contained in:
Bogdan
2026-06-28 06:17:29 +08:00
committed by GitHub
parent 320d63c812
commit 8023356841
9 changed files with 572 additions and 8 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export const flagGroups: FlagGroup[] = [
flags: [
{ flag: '-c, --continue', description: 'Continue the most recent conversation in the current directory.' },
{ flag: '-r, --resume', arg: '[id]', description: 'Resume a conversation by session ID, or open the interactive picker with an optional search term.' },
{ flag: '--fork-session', description: 'When resuming, create a new session ID instead of reusing the original.' },
{ flag: '--fork-session', description: 'When resuming, branch the conversation into a new session ID. This does not create filesystem or worktree isolation.' },
{ flag: '--from-pr', arg: '[pr]', description: 'Resume a session linked to a PR by number/URL, or open the interactive picker.' },
{ flag: '--session-id', arg: '<uuid>', description: 'Use a specific session ID for the conversation (must be a valid UUID).' },
{ flag: '-n, --name', arg: '<name>', description: 'Set a display name for this session (shown in /resume and the terminal title).' },