You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Child threads can run with more permissions than their parent #1593
A managed child thread's requested permission mode is honored unconditionally, so an agent running in a sandboxed parent thread can spawn an unsandboxed child.
Reproduce
Start a thread in Approve for me (auto) mode.
Have the agent run bb thread spawn --project <id> --parent-self --prompt "..." --permission-mode full.
The child thread runs with Full Access: no workspace sandbox, no approval reviewer.
An auto parent spawned three full children because the agent passed --permission-mode full in its spawn commands. resolveThreadExecutionPermissionMode takes requestedPermissionMode first and never compares it to the parent's mode.
A second escalation path exists in the inherit branch: resolveSupportedPermissionMode falls back upward through the provider's supported modes, so a Pi child (supports only full) of an auto parent silently inherits full.
Expected
The parent's last-executed mode should be a hard ceiling for managed child threads. A child can run at or below its parent's mode, never above it.
Activity