You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Permission prompts not propagated at subagent_depth 2 — subagent hangs waiting for approval #43996
When subagent_depth is set to 2, permission prompts (e.g., "ask" for bash)
from a depth-2 subagent never reach the user. The subagent hangs indefinitely
waiting for approval that never arrives.
Config
{
"subagent_depth": 2,
"permission": {
"bash": { "*": "ask" }
}
}
Reproduction Steps1. Set subagent_depth: 2 in opencode.json2. Set permission.bash: { "*": "ask" }3. From primary agent, dispatch to a subagent(mode=all) (e.g., @vasquez)4. That subagent dispatches to another subagent(mode:subagent) (e.g., @general)5. The depth-2 subagent tries to run a bash command (e.g., git status)Expected BehaviorThe permission approval prompt should appear in the TUI, allowing the user to approve or reject the command — same as it does for depth-1 subagents.Actual BehaviorThe depth-2 subagent blocks indefinitely. The permission prompt never reaches the user. No UI element appears. The session must be interrupted manually.Workaround- At depth 1 (primary → subagent → bash), prompts work correctly- Setting bash commands to "allow" avoids the prompt entirely- Having the depth-1 orchestrator execute bash directly also worksEnvironment- OS: Windows (PowerShell)- opencode version: 1.18.19- Model: opencode/big-pickle### Pluginssuperpowers### OpenCode version1.18.19### Steps to reproduce1. Set subagent_depth: 2 in opencode.json2. Set permission.bash: { "*": "ask" }3. From primary agent, dispatch to a subagent(mode=all) (e.g., @vasquez)4. That subagent dispatches to another subagent(mode:subagent) (e.g., @general)5. The depth-2 subagent tries to run a bash command (e.g., git status)### Screenshot and/or share link_No response_### Operating SystemWindows 11### TerminalWindows Terminal
Reacted by Isaias Valle, Practicus AI and QuantumCoded
Activity
github-actions commentedon Aug 21, 2026
This issue might be a duplicate of existing issues. Please check:
subagent_depth: 2and "ask" permissions silently hangingIf your issue is the same, please add a "+1" or additional context there rather than opening a new report.
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊