{"version":"2.1.265","anchor":"artifact-publish-source-verification-now-allows-the-workspac","canonical_anchor":"artifact-publish-source-verification-now-allows-the-workspac","heading":"New per-session \"scratchpad\" directory support","tier":"notice","area":"Artifacts","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/artifact-publish-source-verification-now-allows-the-workspac","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### New per-session \"scratchpad\" directory support\n\nClaude Code now resolves a per-session scratchpad directory and trusts it as a source root for publishing artifacts\n\n**What**\n\nNew helper functions resolve and validate a per-session \"scratchpad\" directory: they check that it's a real directory (not a symlink), compute its canonical path, detect whether a given path lies inside the scratchpad or the working directory, and detect symlink-redirect situations when resolving a base path.\n\nWhen verifying the source of a file being published as an Artifact, the list of trusted root locations now also includes this scratchpad directory, in addition to the working directory and any additional working directories.\n\n**Why**\n\nThis gives Claude Code a dedicated, verified scratch location per session, and lets files published from it be treated as trustworthy the same way files from the working directory already are.\n\n- Area: Artifacts\n- Names: `scratchpad`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}