From 716670d78f8b42685adc0bbeda5dfb367c80e242 Mon Sep 17 00:00:00 2001 From: Sarah Deaton Date: Sat, 17 Jan 2026 09:06:31 -0800 Subject: [PATCH] docs: add 'plan' permission mode to set_permission_mode docstring The PermissionMode type includes 'plan' but it was missing from the docstring documentation for set_permission_mode(). --- src/claude_agent_sdk/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/claude_agent_sdk/client.py b/src/claude_agent_sdk/client.py index 742d7d64..47fbf821 100644 --- a/src/claude_agent_sdk/client.py +++ b/src/claude_agent_sdk/client.py @@ -220,6 +220,7 @@ async def set_permission_mode(self, mode: str) -> None: mode: The permission mode to set. Valid options: - 'default': CLI prompts for dangerous tools - 'acceptEdits': Auto-accept file edits + - 'plan': Claude must get user approval before making changes - 'bypassPermissions': Allow all tools (use with caution) Example: