Skip to content

bypassPermissions not supported during streaming mode change?Β #251

@EdanStarfire

Description

@EdanStarfire

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:

  1. Create a ClaudeSDKClient instance with an initial permission mode of default
  2. 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)?

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions