Skip to content

Commit db69678

Browse files
committed
return [] instead of '' on canceled user input
1 parent d917dfa commit db69678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/tools/tool-executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function executeToolCall<T extends ToolName>({
216216
clientToolCall: ClientToolCall<T extends ClientToolName ? T : never>,
217217
) => {
218218
if (!checkLiveUserInput(userId, userInputId, clientSessionId)) {
219-
return ''
219+
return []
220220
}
221221

222222
const clientToolResult = await requestToolCall(

0 commit comments

Comments
 (0)