Skip to content

Permissions and questions from nested subagents don't bubble up to root, causing stuck sessions #24644

Closed

Description

@michalsalat

When a subagent spawns its own subagents (depth > 1), permission and question requests from those nested sessions are never displayed in the root session's TUI. The subagents block forever waiting for approval that no user can see or grant.

The permissions and questions memos in the TUI session view only collect from direct children (depth 1) via the children() memo. Any grandchild or deeper descendant session is excluded, so their permission prompts are invisible.

The web/desktop app already handles this correctly via sessionTreeRequest() which does a full BFS traversal of the session tree.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 27, 2026
  2. github-actions commented on Apr 27, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • No issue template was used. Bug reports must follow the Bug Report template, which includes fields like Description, Steps to reproduce, OpenCode version, Operating System, and Terminal.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. michalsalat commented on Apr 27, 2026

    @michalsalat
    Author

    Duplicate of #13715 and #7654. Fix in #24638.

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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)needs:complianceThis means the issue will auto-close after 2 hours.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions