Skip to content

Commit 3be4013

Browse files
committed
fix(opencode): cap subagent delegation depth at one
Workaround for anomalyco/opencode#13715: the TUI only forwards permission and question events from direct child sessions, so sub-sub-agent prompts hang silently. Deny `task` on every subagent (except the traya orchestrator) to prevent further delegation. - Add `permission.task: deny` / `question: allow` to each custom agent's header.opencode.yaml - Configure built-in `general` and `explore` agents via the opencode module since they have no user-defined frontmatter Signed-off-by: Martin Wimpress <[email protected]>
1 parent 1c25aad commit 3be4013

15 files changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
model: anthropic/claude-opus-4-7
2+
permission:
3+
task: deny
4+
question: allow

0 commit comments

Comments
 (0)