-
Notifications
You must be signed in to change notification settings - Fork 520
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Issue:
SDK seems to throw an error if you try to use set_permissions_mode("bypassPermissions") after the session was created without that permission.
error log format is from my app:
set_permission_mode_failed - Cannot set permission mode to bypassPermissions since it is not available
Steps to replicate:
- Create a ClaudeSDKClient instance with an initial permission mode of
default - Attempt to use client.set_permission_mode("bypassPermissions") and it'll generate that error.
Questions and Concerns
The code in the library seems to imply that this should be allowed, but it doesn't seem to be working.
Is it possible that this is intentional (cannot move to fully unrestricted from a session that wasn't started that way)?
brandonin and anujhydrabadi
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working