8000 The sub-task of Boomerang Mode has forgotten how to return to the parent task. · Issue #2499 · RooVetGit/Roo-Code · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

The sub-task of Boomerang Mode has forgotten how to return to the parent task. #2499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
isCopyman opened this issue Apr 11, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@isCopyman
Copy link

App Version

v3.11.12

API Provider

OpenRouter

Model Used

gemini-2.5-pro-exp-03-25

Actual vs. Expected Behavior

Expected Behavior:
When a subtask is completed, it should remember to return to the parent task.

Actual:
When faced with an extremely long context, a subtask may forget to return to the parent task and instead switch to other modes or indicate the end of the task.

Detailed Steps to Reproduce

  1. Use boomerang Mode and configure a file with an extremely long context.
  2. When assigning subtasks, let the subtasks read an extremely long file (read completely, with an extremely long context. For me, it seems to be 300k - 400k).
  3. Execute subtasks.
  4. Subtasks are completed.
  5. It will not automatically return to the parent task but prompt that the task execution is completed.

Relevant API Request Output

Additional Context

No response

@isCopyman isCopyman added the bug Something isn't working label Apr 11, 2025
@isCopyman
Copy link
Author

In actual use, if the context of a subtask is too long, some mode instructions must be added to make the subtask remember to return to the parent task.

Copy link
dosubot bot commented Apr 11, 2025
8000

To ensure that a subtask in Boomerang Mode remembers to return to the parent task when dealing with extremely long contexts, you need to explicitly signal task completion using the finishSubTask() function. This function passes the result back to the parent task and allows it to resume in its original mode. This process is crucial for managing task context and ensuring proper task stack management [1].

If you're experiencing issues where subtasks do not return to the parent task, it might be due to the cancelTask() method in ClineProvider.ts, which does not properly handle subtask cancellation. When a subtask is cancelled, the parent task remains in a paused state and continues to wait indefinitely. Modifying the cancelTask() method to check if the current task is a subtask and notify the parent task before reinitializing can help resolve this issue [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@iamhenry
Copy link

This had happened to me so I just have to manually tell it to return to the parent task. Sometimes I have to tell it a few times but it's worth it so it retains the completed context

@hannesrudolph
Copy link
Collaborator

This is caused by the model not following instructions. This is an experimental model and this kind of inconsistent behaviour is an unfortunate reality.

@hannesrudolph hannesrudolph closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 15, 2025
SmartManoj pushed a commit to SmartManoj/Roo-Code that referenced this issue May 6, 2025
* Add Coverage Reporting

* automate tests via github workflow

* ensure documents are cleaned up at the end of the workflow

* add changeset

* backout github workflow changes

* update changeset to reflect split

---------

Co-authored-by: Dennis Bartlett <bartlett.dc.1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants
0