From f5263177965fd2cdcbdf6278a60b6ca1acaaead2 Mon Sep 17 00:00:00 2001 From: Toshii <94262432+0xToshii@users.noreply.github.com> Date: Wed, 27 Aug 2025 23:51:53 -0700 Subject: [PATCH] swapping order of checkpoint and tool result (#5853) --- src/core/task/ToolExecutor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/task/ToolExecutor.ts b/src/core/task/ToolExecutor.ts index fa436718..c0ca2610 100644 --- a/src/core/task/ToolExecutor.ts +++ b/src/core/task/ToolExecutor.ts @@ -353,13 +353,13 @@ export class ToolExecutor { private async handleCompleteBlock(block: ToolUse, config: any): Promise { // 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() } }