-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Clicking on subagent labels in TUI does not navigate to subagent session #20184
Copy link
Copy link
Open
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
Description
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
- Start opencode TUI
- Prompt: "launch 3 subagents each sleeping for 60 seconds"
- While subagents are running, click on any subagent label
- Expected: navigate to subagent session view
- Actual: nothing happens
Screenshot and/or share link
N/A
Operating System
Linux (reproduced on Ubuntu)
Terminal
Ghostty
Bisect result: Regression introduced by c5442d4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)