Skip to content

Commit 07c77d3

Browse files
gluonfieldclaude
andcommitted
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

File tree

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export OPENCODE_DB=/data/opencode/opencode.db
99

1010
cat > /home/sandbox/.config/opencode/opencode.json <<EOF
1111
{
12+
"permission": "allow",
1213
"provider": {
1314
"openrouter": {
1415
"npm": "@ai-sdk/openai",

0 commit comments

Comments
 (0)