Commit 07c77d3
fix: auto-allow all opencode permissions in sandbox
Sets "permission": "allow" in opencode.json so every permission check
resolves to allow via the findLast rule in permission/evaluate.ts.
Without this, OpenCode's permission system blocks on Deferred.await
with no timeout whenever a tool hits an "ask" rule (e.g., read tool
triggering external_directory on paths outside the worktree, or on
task subagent sessions that upstream code can't approve).
Since the sandbox is an isolated gVisor environment running trusted
agent code, fine-grained permissions add no security value — they
only create deadlock opportunities.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d7751c8 commit 07c77d3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments