Skip to content

feat: consolidated task delegation dashboard with task count and expand/collapse#12334

Open
roomote-v0[bot] wants to merge 2 commits into
mainfrom
feature/task-dashboard-consolidated
Open

feat: consolidated task delegation dashboard with task count and expand/collapse#12334
roomote-v0[bot] wants to merge 2 commits into
mainfrom
feature/task-dashboard-consolidated

Conversation

@roomote-v0
Copy link
Copy Markdown
Contributor

@roomote-v0 roomote-v0 Bot commented May 12, 2026

This PR attempts to address Issue #12329 by consolidating PRs #12331 and #12333 into a single branch. This was prompted by the question from @easonLiangWorldedtech about how the two PRs would be combined.

What this includes

This is a single, clean PR containing all Task Delegation Dashboard functionality:

Base dashboard (from #12331)

  • useTaskTree hook: Builds a tree data structure from existing taskHistory state, filtering to the current delegation session using rootTaskId. Handles circular references, missing children, and session isolation.
  • TaskDashboard component: Renders a collapsible tree view below the TaskHeader showing parent/child delegation relationships, mode name + status badge per task node, active task highlighting, truncated task descriptions with tooltips, and click-to-navigate.
  • Integration: Added to ChatView.tsx between TaskHeader and CheckpointWarning. Only renders when there is a delegation hierarchy (2+ tasks), so zero impact on simple workflows.

Enhancements (from #12333)

  • Task count in header: Shows "Task Delegation (N tasks)" instead of just "Task Delegation"
  • Expand/collapse on tree nodes: Nodes with children show a chevron toggle button; leaf nodes show a spacer for alignment. Children are expanded by default.

Testing

  • 24 unit tests across 2 test files (all passing)
  • TypeScript compilation passes across the full monorepo
  • Uses existing VSCode theme CSS variables and Tailwind CSS for styling

Merge strategy

This PR supersedes both #12331 and #12333. Once merged, those can be closed.

Feedback and guidance are welcome.

Interactively review PR in Roo Code Cloud

roomote added 2 commits May 12, 2026 02:38
…bility

Adds a collapsible Task Delegation dashboard section inside the existing
Roo Code webview panel, displayed below the TaskHeader when the current
task is part of a multi-task delegation hierarchy.

Features:
- Tree view showing parent/child delegation relationships
- Mode name + status badge (Active/Delegated/Completed) per task
- Active task highlighting with visual indicator
- Click-to-navigate to any task in the hierarchy
- Collapsible panel header
- Only visible during active delegation sessions (2+ tasks)
- Supports custom modes

Closes #12329
…odes

- Section header now shows task count (e.g. "Task Delegation (3 tasks)")
- Tree nodes with children have expand/collapse toggle buttons
- Added countTreeNodes helper and taskCount to useTaskTree
- Added 8 new tests covering both features (24 total pass)
@roomote-v0 roomote-v0 Bot marked this pull request as ready for review May 12, 2026 08:51
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. Enhancement New feature or request labels May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant