[PR #11573] feat(ui): support delegate_task tool for subagent view #13845

Open
opened 2026-02-16 18:18:40 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11573

State: open
Merged: No


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
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11573 **State:** open **Merged:** No --- ## 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
yindo added the pull-request label 2026-02-16 18:18:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13845