Skip to content

Input prompt hidden when attaching to child/subagent session #6896

Closed

Description

@rmk40

Description

When attaching directly to a child session (subagent session) via CLI, the input prompt is not displayed. Users cannot type anything—including exit or :q—and must navigate to the parent session to exit.

Root cause: In the Permission rework (#6319), the Prompt component's visibility was changed to:

visible={!session()?.parentID && permissions().length === 0}

This intentionally hides the prompt when parentID exists (child sessions), but breaks direct interaction with subagent sessions.

Location: packages/opencode/src/cli/cmd/tui/routes/session/index.tsx:1028

OpenCode version

1.1.1 (regression from 1.0.223)

Steps to reproduce

  1. Start a session and trigger a subagent task
  2. Note the child session ID from the output
  3. Exit and run: opencode -s <child-session-id>
  4. No input prompt appears; cannot type or exit

Operating System

Any

Terminal

Any

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 5, 2026
  2. rekram1-node commented on Jan 5, 2026

    @rekram1-node
    Contributor

    this was intentional change

  3. rmk40 commented on Jan 5, 2026

    @rmk40
    ContributorAuthor

    Understood but shouldn't it at least be possible to exit?

  4. rekram1-node commented on Jan 5, 2026

    @rekram1-node
    Contributor

    yes

  5. rekram1-node commented on Jan 5, 2026

    @rekram1-node
    Contributor

    should fix

  6. added a commit that references this issue on Jan 5, 2026
    1a1846f
  7. gc-victor commented on Jan 12, 2026

    @gc-victor

    this was intentional change

    @rekram1-node, please, could you provide some light on the reasons for removing the prompt input in the subagents view? I was using it a lot, and I would like to understand the pros and cons. Thanks!

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

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions