feat: consolidated task delegation dashboard with task count and expand/collapse#12334
Open
roomote-v0[bot] wants to merge 2 commits into
Open
feat: consolidated task delegation dashboard with task count and expand/collapse#12334roomote-v0[bot] wants to merge 2 commits into
roomote-v0[bot] wants to merge 2 commits into
Conversation
…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)
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
useTaskTreehook: Builds a tree data structure from existingtaskHistorystate, filtering to the current delegation session usingrootTaskId. Handles circular references, missing children, and session isolation.TaskDashboardcomponent: 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.ChatView.tsxbetween TaskHeader and CheckpointWarning. Only renders when there is a delegation hierarchy (2+ tasks), so zero impact on simple workflows.Enhancements (from #12333)
Testing
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