Skip to content

[BUG] Subagent permission request UI prompts fail to render when opening an active session in secondary UI instances #52411

Closed as not planned

Description

@cccaballero

Description

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.


Environment / Version Details

  • OpenCode Version: 1.18.34
  • OMO-Slim Version: v2.2.13
  • OS: Linux (Ubuntu 26.04)
  • Integrations Affected: OpenCode CLI (multi-instance session attachment), OpenCode JetBrains ACP Plugin

Plugins

context-mode, oh-my-opencode-slim

OpenCode version

1.18.34

Steps to reproduce

  1. Start an OpenCode terminal/UI instance (Instance A).
  2. Prompt the Orchestrator with a task that triggers a subagent requiring permission (e.g., reading/accessing an external path like /home/.../test/tmp/*).
  3. Observe Instance A when the subagent requests permission: the "Permission required" dialog renders properly at the bottom of the chat interface.
  4. Launch a second OpenCode UI instance or attach via the JetBrains ACP plugin (Instance B).
  5. Switch to/open the active running session in Instance B (ctrl+x l -> Select active session).
  6. Observe Instance B: The task appears stalled, and the interactive permission prompt is missing from the UI.

Screenshot and/or share link

Grabacion.de.pantalla.desde.2026-09-30.19-25-19.mp4

Operating System

Ubuntu 26.04

Terminal

Gnome Terminal

Activity

  1. github-actions commented on Oct 1, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues about pending prompts not appearing when attaching to a session. Please check:

    • #21154: Pending permission/question prompts are not shown when reattaching to an existing session.
    • #10564: TUI does not display pending permissions or questions when attaching to a session.

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  2. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions