{"version":"2.1.259","anchor":"new-sdk-option-permissionprompts-alongside-permissionpromp","canonical_anchor":"new-permission-prompts-hostnone-clisdk-option-to-silen","heading":"New --permission-prompts host|none CLI\/SDK option for print sessions","tier":"use","area":"SDK","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.259\/e\/new-sdk-option-permissionprompts-alongside-permissionpromp","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.259","markdown":"### New `--permission-prompts host|none` CLI\/SDK option for print sessions\n\nThe Agent SDK query builder accepts a permissionPrompts option of host or none, passed through to the CLI.\n\nIn `--print`\/headless mode, a new `--permission-prompts <target>` CLI option lets you choose who answers permission prompts: `host` (the default, using the SDK host or `--permission-prompt-tool`) or `none`. With `none`, the SDK does not consult the host; anything that would need a prompt is auto-denied locally, `hostAnswersElicitations` is disabled, and the SDK logs `--permission-prompts none: permission prompts are answered with a local deny; the SDK host is not consulted`. Other permission-mode behavior is unaffected. The Agent SDK \/ CLI query builder exposes the same choice as a `permissionPrompts` option (\"host\"\/\"none\"), passed through as `--permission-prompts` to the CLI. The SDK-level `none` option is separately marked unsupported for cloud\/remote sessions today, logging `--permission-prompts none (turning permission prompts off is not supported for a cloud session yet; they reach the host over stdio)`.\n\nWhen a tool requiring permission is hit under `--permission-prompts=none` (or any session with no approval surface), it is now auto-denied with an explicit message telling the model the action was not performed, not to retry, and that all further approval-requiring actions will be denied for the rest of the session.\n\n- Area: SDK\n- Names: `permissionPrompts`, `permissionPromptToolName`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5"}