fix: await checkpoint save before subtask delegation in Orchestrator mode #10624
+7
−3
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.
Related GitHub Issue
Closes: #10623
Roo Code Task Context (Optional)
This PR was created by Roo Code to address the issue regarding checkpoints in Orchestrator mode.
Description
This PR addresses the enhancement request to make checkpoints visible in Orchestrator mode when delegating to subtasks.
The Issue:
Checkpoints were not appearing in the Orchestrator mode conversation before subtask delegation because the
checkpointSave()call was not awaited. This caused a race condition where the subtask delegation could happen before the checkpoint message was added to the conversation history.The Fix:
Added
awaitto thecheckpointSave(true)call inNewTaskTool.tsto ensure the checkpoint is fully saved and the checkpoint message appears in the conversation history BEFORE the subtask delegation occurs.How this helps users:
Test Procedure
new_tasktoolPre-Submission Checklist
Documentation Updates
Additional Notes
The change is minimal - adding a single
awaitkeyword to ensure proper sequencing of the checkpoint save and subtask delegation. The existing checkpoint functionality already supports:By ensuring the checkpoint is visible before subtask delegation, users can now leverage these existing features to:
Get in Touch
This PR was created by an automated agent in response to the issue comment.
Important
Adds
awaittocheckpointSave(true)inNewTaskTool.tsto ensure checkpoints are saved before subtask delegation, improving checkpoint visibility in Orchestrator mode.awaittocheckpointSave(true)inNewTaskTool.tsto ensure checkpoints are saved before subtask delegation.This description was created by
for 20b557a. You can customize this summary. It will automatically update as commits are pushed.