Skip to content

fix(tui): cannot navigate into grandchild sessions from subagent view #23782

Closed as not planned

Description

@areyouok

Description

In the TUI session tree, when a sub-agent spawns its own child (grandchild session), pressing down or clicking to navigate into the grandchild session does nothing. Navigation into child sessions only works from the root session level.

Steps to reproduce

  1. Start a session that spawns a sub-agent
  2. Navigate into the sub-agent session (this works)
  3. The sub-agent spawns its own child session (grandchild)
  4. Press down / try to navigate into the grandchild → nothing happens

What's happening

moveFirstChild() and moveChild() in session/index.tsx use children() to look up sessions, but children() only returns the root session's direct children. From a sub-agent context, the grandchild sessions are not in that list, so navigation fails silently.

OpenCode version

v1.14.x (dev)

Operating System

macOS

Terminal

Any

Activity

  1. github-actions commented on Apr 22, 2026

    @github-actions
    Contributor

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

  2. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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