{"version":"2.1.324","anchor":"worktree-child-cwdadd-dirs-selection-changed-for-multiple-m","canonical_anchor":"worktree-child-cwdadd-dirs-selection-changed-for-multiple-m","heading":"Child sessions get different folders when several match","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/worktree-child-cwdadd-dirs-selection-changed-for-multiple-m","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Child sessions get different folders when several match\n\nWhen several matching folders are not all inside the main folder, a child session now starts in the first one and may also get the main folder\n\n**Unclear.** What decides whether the child session gets no extra folders or gets the main folder too is not known.\n\n**What**\n\nClaude Code can start a child session, a second session spun off from yours, and choose which folder it works in and which extra folders it may reach. When several folders match and not all of them sit inside the main folder:\n\n- Starting folder: the child session starts in the first match.\n\n- Extra folders: either none at all, or the matches plus the main folder.\n\nBefore, the main folder was never in the extra folders in this case.\n\n**Why**\n\nThis changes which directories a child session can read and edit.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}