Skip to content

Clicking on subagent labels in TUI does not navigate to subagent session #20184

@altendky

Description

@altendky

Description

After commit c5442d4 ("refactor(session): effectify SessionPrompt service"), clicking on subagent labels in the TUI no longer navigates to the subagent session view. Clicking does nothing.

The TUI click handler checks props.metadata.sessionId and only navigates if it's truthy. The sessionId is set via ctx.metadata() during task tool execution, but this metadata is being silently dropped due to a race condition in the new queue-based LLM layer.

Plugins

None

OpenCode version

dev branch, after c5442d4

Steps to reproduce

  1. Start opencode TUI
  2. Prompt: "launch 3 subagents each sleeping for 60 seconds"
  3. While subagents are running, click on any subagent label
  4. Expected: navigate to subagent session view
  5. Actual: nothing happens

Screenshot and/or share link

N/A

Operating System

Linux (reproduced on Ubuntu)

Terminal

Ghostty


Bisect result: Regression introduced by c5442d4

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions