Full access tool calls still serialize sandbox escalation fields and fail before execution #5611
Replies: 1 comment 2 replies
|
This is the third+ report of what's become a well-documented family (earlier: #3519, #4359), and it's still open in master — I verified the exact mechanism. Your diagnosis is correct; the key is the ordering, and the "not strictly wider" message you see is actually a red herring for the empty-justification case. Verified against master (
So the empty-justification path dies at gate #1; a non-empty just-different justification survives #1 but dies at #2. Both are the same root defect: the Consumer's flow validates The real bug is ordering, not the width check. The tool-execute path should be: This is exactly what Why this matters beyond convenience: your repro uses Full access = Suggested fix is sound and matches the converged blueprint:
I'm happy to put together the exact |
Uh oh!
There was an error while loading. Please reload this page.
Summary
When a DSH Web GUI session uses Full access (
danger-full-access+ approval policynever), model-generatedpwsh,edit, andwritecalls still serialize the escalation-only fieldssandbox_permissionsandjustification. The calls are rejected before execution even though the session already has the highest permission.Reproduction
/permission danger-full-access.{ "sandbox_permissions": "danger-full-access", "justification": "" }Actual behavior
An empty justification fails with:
A non-empty justification fails with:
The same behavior occurred in the lead session and delegated/subagent sessions. Repeated retries can form loops, making Full access less usable than
workspace-write + ask.Expected behavior
When the standing mode is
danger-full-access:sandbox_permissions.justificationis also omitted because no escalation is requested.Workaround
Switch the current session to
workspace-write + ask, then requestdanger-full-accessas a wider one-shot escalation. This works but is cumbersome and contradicts the purpose of Full access.Suggested fix
pwsh/editreaches execution with both fields absent.Environment
danger-full-accessneverAll reactions