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
[BUG] Subagent permission request UI prompts fail to render when opening an active session in secondary UI instances #52411
When an active session involves a subagent requesting permission (e.g., external directory access via tool calls), the primary UI instance correctly displays the interactive "Permission required" prompt. However, if the same session is loaded or attached from a secondary UI instance (e.g., launching another OpenCode CLI instance or connecting via integrations such as the JetBrains ACP plugin), the permission prompt fails to render in the chat UI.
Because the secondary instance does not display the permission dialog, users cannot grant or reject the requested permission, causing the session to hang indefinitely waiting for user input.
Expected Behavior
When attaching or viewing a running session across multiple instances (or secondary clients like the JetBrains ACP integration), pending permission requests triggered by subagents should sync state and render the permission prompt so the user can approve or reject it from any connected UI.
Actual Behavior
The permission prompt only appears in the instance where the request was originally initiated. In secondary attached instances, the prompt is completely invisible, leaving the session stuck in an unexecutable state.
Start an OpenCode terminal/UI instance (Instance A).
Prompt the Orchestrator with a task that triggers a subagent requiring permission (e.g., reading/accessing an external path like /home/.../test/tmp/*).
Observe Instance A when the subagent requests permission: the "Permission required" dialog renders properly at the bottom of the chat interface.
Launch a second OpenCode UI instance or attach via the JetBrains ACP plugin (Instance B).
Switch to/open the active running session in Instance B (ctrl+x l -> Select active session).
Observe Instance B: The task appears stalled, and the interactive permission prompt is missing from the UI.
Thanks for the report and the video. This is on OpenCode v1 (opencode-ai 1.18.34), which now only gets critical fixes (data loss, security, breakage with no workaround). Here the prompt still shows in the instance that started the request and can be answered there, so this won't be fixed in v1. Please try v2 (@opencode/cli, see the migration guide). If subagent permission prompts still don't show up in a second client on v2, comment with your version and steps and we'll reopen.
Activity
github-actions commentedon Oct 1, 2026
This issue might be a duplicate of existing issues about pending prompts not appearing when attaching to a session. Please check:
For keybind-related issues, please also check our pinned keybinds documentation: #4997
neriousy commentedon Oct 20, 2026
Thanks for the report and the video. This is on OpenCode v1 (
opencode-ai1.18.34), which now only gets critical fixes (data loss, security, breakage with no workaround). Here the prompt still shows in the instance that started the request and can be answered there, so this won't be fixed in v1. Please try v2 (@opencode/cli, see the migration guide). If subagent permission prompts still don't show up in a second client on v2, comment with your version and steps and we'll reopen.