Skip to content

feat(ui): support delegate_task tool for subagent view#11573

Closed
daixudk96-max wants to merge 1 commit intoanomalyco:devfrom
daixudk96-max:feat/support-delegate-task-subagent-view
Closed

feat(ui): support delegate_task tool for subagent view#11573
daixudk96-max wants to merge 1 commit intoanomalyco:devfrom
daixudk96-max:feat/support-delegate-task-subagent-view

Conversation

@daixudk96-max
Copy link
Copy Markdown

@daixudk96-max daixudk96-max commented Feb 1, 2026

Summary

Fixes #11575

This PR enables plugins (like oh-my-opencode) to display the "View Sub Agents" UI for their custom delegation tools.

Changes

  • Modified packages/ui/src/components/session-turn.tsx to check for both task and delegate_task tool names when detecting running subagent sessions
  • No breaking changes to existing task tool behavior

Motivation

Currently, the UI only shows the subagent view for the built-in task tool. Plugin tools like delegate_task (from oh-my-opencode) pass the correct sessionId in metadata but the UI doesn't recognize them because of the hardcoded tool name check.

This small change allows plugins to leverage the same subagent UI experience.

Testing

  • Existing task tool behavior unchanged
  • delegate_task tool with metadata.sessionId now triggers subagent view

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 1, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 1, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Add delegate_task alongside task tool for detecting running subagent sessions.
This enables plugins like oh-my-opencode to display 'View Sub Agents' UI
for their delegation tools.

- Modified condition to check for both 'task' and 'delegate_task' tool names
- No breaking changes to existing task tool behavior
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Support plugin delegation tools in subagent UI view

1 participant