{"version":"2.1.329","anchor":"apply-flag-settings-validates-additionaldirectoryconfigroots","canonical_anchor":"apply-flag-settings-validates-additionaldirectoryconfigroots","heading":"Flag settings now check that additionalDirectoryConfigRoots is well formed","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/apply-flag-settings-validates-additionaldirectoryconfigroots","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Flag settings now check that additionalDirectoryConfigRoots is well formed\n\nAn apply_flag_settings request is refused when additionalDirectoryConfigRoots is not an object mapping absolute paths to strings\n\n**What**\n\nA program that drives Claude Code can change its settings by sending an apply_flag_settings request. Claude Code now checks the `additionalDirectoryConfigRoots` value in such a request. It must be an object whose keys are absolute paths (full paths starting from the top of the file system, such as \/home\/me\/project) and whose values are strings. If it is not, Claude Code refuses the request and the setting does not take effect.\n\n**Why**\n\nThis tightens a new settings key. Programs that send it need to use exactly this shape, or the setting will not be in force.\n\n- Area: SDK\n- Names: `apply_flag_settings`, `additionalDirectoryConfigRoots`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}