{"version":"2.1.315","anchor":"sdk-sessionstore-error-now-gives-new-claude-config-dir-advic","canonical_anchor":"sdk-sessionstore-error-now-gives-new-claude-config-dir-advic","heading":"SDK error now suggests a private config folder instead of \/tmp","tier":"notice","area":"Agents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/sdk-sessionstore-error-now-gives-new-claude-config-dir-advic","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### SDK error now suggests a private config folder instead of \/tmp\n\nWhen `sessionStore` is used with `persistSession: false`, the error now advises a new private `CLAUDE_CONFIG_DIR` deleted afterwards, not \/tmp\n\n**What**\n\nThe SDK is the toolkit for building your own programs on top of Claude Code. Using `sessionStore` together with `persistSession: false` produces an error. That error now advises passing `CLAUDE_CONFIG_DIR` in the environment, pointing at a new private folder, and deleting that folder afterwards. It used to suggest `CLAUDE_CONFIG_DIR=\/tmp`.\n\n**Why**\n\nOn a machine shared with other people, \/tmp is open to every user, so following the old advice was unsafe.\n\n- Area: Agents\n- Names: `CLAUDE_CONFIG_DIR`, `sessionStore`, `persistSession`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}