-
Notifications
You must be signed in to change notification settings - Fork 7.8k
feat(tui): click on subagents to open them #5761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds interactive click functionality to subagent task displays in the TUI, allowing users to click on subagent tasks to open them in a dialog with navigation options.
- Converts TaskTool rendering to an interactive clickable box with hover effects
- Adds a new dialog component for subagent actions (currently supporting "Open" action to navigate to the subagent's session)
- Implements text selection detection to prevent dialog opening when users are selecting text
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | Updated TaskTool registration to use an interactive box component with mouse event handlers, hover states, and dialog integration for subagent navigation |
| packages/opencode/src/cli/cmd/tui/routes/session/dialog-subagent.tsx | New dialog component providing action menu for subagent sessions with navigation to the subagent's session view |
The code changes follow established patterns in the codebase, implement appropriate null checks, and integrate cleanly with existing dialog and navigation systems. No issues were identified during the review.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
this is good |
|
/review |
|
lgtm |
* feat(tui): click on subagents to open them (anomalyco#5761) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> * chore: generate * fix: better api call error msgs in some cases * tweak: better release notes (grouped changelog) (anomalyco#5768) * ci: better err msg for generate workflow * fix(desktop): extra reqs * fix(desktop): shell mode * release: v1.0.169 * sync: record last synced tag v1.0.169 --------- Co-authored-by: Rohan Godha <git@rohangodha.com> Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Aiden Cline <aidenpcline@gmail.com> Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com> Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com> Co-authored-by: opencode <opencode@sst.dev> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Screen.Recording.2025-12-18.at.2.00.49.PM.mov
the latency is just because im doing this over an ssh connection