Skip to content

docs: distinguish Current workspace and New worktree forks - #393

Merged
zxch3n merged 1 commit into
mainfrom
cursor/docs-fork-worktree-0298
Sep 4, 2026
Merged

docs: distinguish Current workspace and New worktree forks#393
zxch3n merged 1 commit into
mainfrom
cursor/docs-fork-worktree-0298

Conversation

@zxch3n

@zxch3n zxch3n commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Problem / pressure

Codex review of #389 flagged a P1: the parallel-agents page (and Sessions / session-handoff) said a fork always reuses the source directory. That hides the supported New worktree destination and can make users abandon conversation history to get isolation.

Summary

Document the two Fork session destinations already offered in product UI:

  • Current workspace — new tab; shares files and uncommitted changes
  • New worktree — independent session from the latest committed HEAD (uncommitted/untracked files stay on the source)

If New worktree is not offered, fork stays on the current workspace. Side Chat always uses the shared-directory path.

Copy is updated in en+zh on:

  • session.mdx (canonical Fork section)
  • parallel-agents.mdx (callout + FAQ)
  • session-handoff.mdx (one clarifying sentence)

Labels match sessions.forkDestination.* in locales/{en,zh_CN}.json.

Before / after

Before After
Fork always shares the source directory; isolation means start a new home-page session Current workspace vs New worktree; New worktree isolates from committed HEAD without dropping history
“Fork is not a second worktree” / “It is not a separate Git branch or worktree” Those categorical claims removed

Test plan

  • Product labels checked against session-fork-destination-menu.tsx and locale strings
  • pnpm --filter @lody/site-docs generate — MDX / sitemap / search / llms succeeded
  • Sitemap still lists /docs/session/, /docs/parallel-agents/, /docs/session-handoff/ and zh counterparts
  • Search index contains Current workspace / New worktree and 当前工作区 / 新 Worktree
  • No product UI or behavior changes

Related issue

Follow-up to #389 review (discussion_r3933338638). Same-repo docs fix; no Issue.

Open in Web Open in Cursor 

Fork can isolate into a new worktree from committed HEAD. Stop saying
it always reuses the source directory.

Model: cursor-grok-4.6-high-fast

Co-authored-by: Zixuan Chen <zx@loro.dev>
@zxch3n
zxch3n marked this pull request as ready for review September 4, 2026 12:28
@zxch3n
zxch3n merged commit ce5f2cb into main Sep 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants