-
Notifications
You must be signed in to change notification settings - Fork 10k
Description
Description
Summary
When OpenCode runs in ACP mode, permission requests originating from child sessions (e.g. Task subagents) are silently ignored. This causes those sessions to block indefinitely and appear frozen.
Problem
The ACP agent only handles permission requests for sessions it directly tracks. Child sessions created by Task subagents are not registered with the ACP session manager, so when they request permissions, the ACP agent drops the request without notifying the ACP client.
Expected Behavior
Permission requests from child sessions should be surfaced to the ACP client the same way as requests from the main session.
Impact
• Task subagents can deadlock
• No visible error or feedback to the user
• Difficult to diagnose without deep inspection
Plugins
No response
OpenCode version
OpenCode v1.1.51
Steps to reproduce
- Run OpenCode in ACP mode
- Trigger a Task subagent
Use the Task tool to create a subagent that writes a test file to /tmp/opencode-permission-test.txt with the content "hello world", then reads it back and reports the contents. - Observe the session freezing with no permission prompt
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response