Skip to content

Commit 05e4e88

Browse files
committed
fix(tooling): include toolName in print-mode events
1 parent 7cfdcf0 commit 05e4e88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/tools/batch-str-replace.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ async function executeSingleStrReplace(
346346
type: 'tool_result',
347347
toolName: toolResultPart.toolName,
348348
toolCallId: toolCall.toolCallId,
349+
toolName: 'str_replace',
349350
output: toolResult,
350351
})
351352

@@ -493,6 +494,7 @@ function handleStrReplaceError(params: {
493494
type: 'tool_result',
494495
toolName: errorResult.toolName,
495496
toolCallId: toolCall.toolCallId,
497+
toolName: 'str_replace',
496498
output: errorResult.output,
497499
})
498500
}
@@ -880,6 +882,7 @@ async function applyBenchifyResultSafely(params: {
880882
type: 'tool_result',
881883
toolName: benchifyToolResult.toolName,
882884
toolCallId: relatedToolCall.toolCallId,
885+
toolName: 'str_replace',
883886
output: benchifyToolResult.output,
884887
})
885888

0 commit comments

Comments
 (0)