{"version":"2.1.324","anchor":"stage-file-path-now-falls-back-to-the-parent-directory","canonical_anchor":"stage-file-path-now-falls-back-to-the-parent-directory","heading":"Staged file paths can now resolve to their parent folder","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/stage-file-path-now-falls-back-to-the-parent-directory","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Staged file paths can now resolve to their parent folder\n\nA staged file path under `CLAUDE_STAGE_FILE_ROOT` now resolves to its parent folder when it does not match an expected pattern\n\n**What**\n\nClaude Code builds staged file paths by joining a file name onto the folder set in `CLAUDE_STAGE_FILE_ROOT`, an environment variable (a setting you put in your shell before starting Claude Code). That join works as before. There is now one extra step: when a shape pattern is configured and the joined path does not match a second pattern, Claude Code uses the path's parent folder instead of the full path.\n\n**Why**\n\nIn some cases a staged file reference now points to the folder that contains the file rather than to the file itself.\n\n- Area: Elsewhere\n- Names: `CLAUDE_STAGE_FILE_ROOT`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}