diff --git a/extensions/cli/src/commands/serve.helpers.ts b/extensions/cli/src/commands/serve.helpers.ts index 6cc4a5f6a..a0fcc7b74 100644 --- a/extensions/cli/src/commands/serve.helpers.ts +++ b/extensions/cli/src/commands/serve.helpers.ts @@ -57,10 +57,11 @@ export async function streamChatResponseWithInterruption( } // Always create a new assistant message for each tool call + const toolCallId = `tool_${Date.now()}`; const toolCallState: ToolCallState = { - toolCallId: `tool_${Date.now()}`, + toolCallId: toolCallId, toolCall: { - id: `tool_${Date.now()}`, + id: toolCallId, type: "function", function: { name: toolName, diff --git a/extensions/cli/src/ui/components/ToolPermissionSelector.tsx b/extensions/cli/src/ui/components/ToolPermissionSelector.tsx index fed7c2203..e5e9da0ca 100644 --- a/extensions/cli/src/ui/components/ToolPermissionSelector.tsx +++ b/extensions/cli/src/ui/components/ToolPermissionSelector.tsx @@ -115,7 +115,7 @@ export const ToolPermissionSelector: React.FC = ({ {/* Show preview of what the tool will do */} - +