Skip to content

Parent-child task relationships lost on extension reload #6624

@xynova

Description

@xynova

Problem Description

When VS Code reloads the RooCode extension, parent-child task relationships are lost. This means:

  1. Subtask context is lost - Child tasks can no longer return to their parent tasks
  2. Task hierarchy is lost - The original task stack structure cannot be reconstructed
  3. Workflow continuity is broken - Users cannot resume complex multi-step workflows

Current Behavior

  • ✅ Individual tasks are preserved in history
  • ✅ Task mode is preserved
  • ✅ Task conversations are saved
  • ❌ Parent-child relationships are lost
  • ❌ Task hierarchy cannot be reconstructed
  • ❌ Subtask context is lost

Expected Behavior

After extension reload, users should be able to:

  • Resume parent tasks from child tasks
  • See the complete task hierarchy in history
  • Continue workflows that span multiple tasks

Technical Details

The issue stems from the HistoryItem schema not including parent-child relationship fields. The Task class stores parent relationships only in memory as Task object references, not as persistent IDs.

Impact

This limitation prevents RooCode from being used for persistent workflows that require:

  • Multi-step task orchestration
  • Complex problem-solving workflows
  • Long-running development processes
  • Task delegation and coordination

Suggested Solution

Extend the HistoryItem schema to include:

  • parentTaskId?: string - ID of the parent task
  • rootTaskId?: string - ID of the root task in the hierarchy
  • taskHierarchy?: string[] - Array of task IDs in the hierarchy

This would allow reconstruction of the task hierarchy after extension reload.

Related

This is related to the broader limitation that RooCode is not a workflow engine, but this specific issue prevents even basic parent-child task persistence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs ScopingValid, but needs effort estimate or design input before work can start.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions