swapping order of checkpoint and tool result (#5853)

This commit is contained in:
Toshii authored and GitHub committed 2025-08-27 23:51:53 -07:00
1 parent 550883df6a
commit f526317796
1 file changed
+2 -2
+2 -2
View File
@@ -353,13 +353,13 @@ export class ToolExecutor {
private async handleCompleteBlock(block: ToolUse, config: any): Promise<void> {
// All tools are now fully self-managed and implement IPartialBlockHandler
const result = await this.coordinator.execute(config, block)
await this.saveCheckpoint()
this.pushToolResult(result, block)
// Handle focus chain updates
if (!block.partial && this.focusChainSettings.enabled) {
await this.updateFCListFromToolResponse(block.params.task_progress)
}
await this.saveCheckpoint()
}
}