Skip to content

[BUG] Terminating an active subtask fails to resume the parent task #9886

@Dinesh-Gautam

Description

@Dinesh-Gautam

Problem (one or two sentences)

When a user terminates an active subtask (e.g., via the "Terminate" button) before the attempt_completion tool, it fails to automatically return and resume the parent task.

Context (who is affected and when)

This bug occurs in orchestrator mode when a parent task delegates work to a child task (subtask). If the subtask is manually canceled by the user (e.g., by interrupting the API request and then clicking the "Terminate" button), the system should resume the parent task.

Reproduction steps

  1. Start a new task in orchestrator mode.
  2. Provide an instruction that prompts the creation of a subtask.
  3. Approve the subtask creation.
  4. Once the subtask begins its first API request and is actively streaming, immediately Click the "Cancel Request" button. then, Click the "Terminate" button.

Expected result

should return to the parent task

Actual result

The parent task is not resumed.

Variations tried (optional)

No response

App Version

3.35.4

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions