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
opencode run hangs when model attempts to use question tool #11899
When using opencode run, if the model attempts to use the question tool, the command hangs indefinitely. This happens because the question tool waits for user input that can never come in non-interactive mode.
Root Cause
run.ts correctly sets session permission rules to deny the question permission, but LLM.resolveTools only checked agent.permission when filtering disabled tools - it ignored session permissions. This allowed the question tool to remain available to the model.
Expected Behavior
The question tool should be excluded from the tools list in non-interactive mode, preventing the model from calling it.
Actual Behavior
The model can call the question tool, which then hangs waiting for a response.
This issue might be a duplicate of existing issues. Please check:
subprocess.Popen hang issues on "opencode run message --json format"? #11891: subprocess.Popen hang issues on "opencode run message --json format"? - While this issue also involves opencode run hanging, it may have a different root cause related to subprocess stdout handling vs. the question tool permission filtering described here.
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Feb 3, 2026
This issue might be a duplicate of existing issues. Please check:
opencode runhanging, it may have a different root cause related to subprocess stdout handling vs. the question tool permission filtering described here.Feel free to ignore if none of these address your specific case.
S0LERA commentedon Feb 17, 2026
+1
fix: filter question tool and respect session permissions in non-inte…
tim-sh commentedon Feb 25, 2026
+1
rekram1-node commentedon Mar 26, 2026
Believe this has been resolved