Commit 0033c84
committed
Studio: let Bypass Permissions suppress the confirm-tool-calls guards
The confirm-vs-bypass precedence (confirm and not bypass) was applied at the
loop call sites but not at the earlier request guards, so a client sending
confirm_tool_calls + bypass_permissions together was rejected (stream=true
required / unsupported for external or Anthropic tools) before the precedence
took effect. Gate all four confirm guards on not bypass_permissions so both
flags together proceed with the gate suppressed, matching the documented rule.1 parent 78db58a commit 0033c84
1 file changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3505 | 3505 | | |
3506 | 3506 | | |
3507 | 3507 | | |
3508 | | - | |
| 3508 | + | |
| 3509 | + | |
| 3510 | + | |
3509 | 3511 | | |
3510 | 3512 | | |
3511 | 3513 | | |
| |||
3892 | 3894 | | |
3893 | 3895 | | |
3894 | 3896 | | |
3895 | | - | |
| 3897 | + | |
| 3898 | + | |
| 3899 | + | |
| 3900 | + | |
| 3901 | + | |
| 3902 | + | |
| 3903 | + | |
3896 | 3904 | | |
3897 | 3905 | | |
3898 | 3906 | | |
| |||
4441 | 4449 | | |
4442 | 4450 | | |
4443 | 4451 | | |
4444 | | - | |
| 4452 | + | |
| 4453 | + | |
| 4454 | + | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
4445 | 4459 | | |
4446 | 4460 | | |
4447 | 4461 | | |
| |||
6868 | 6882 | | |
6869 | 6883 | | |
6870 | 6884 | | |
6871 | | - | |
| 6885 | + | |
| 6886 | + | |
| 6887 | + | |
| 6888 | + | |
6872 | 6889 | | |
6873 | 6890 | | |
6874 | 6891 | | |
| |||
0 commit comments