From ad2c9f232ca47f1f50b194430a606fc80d16fd1e Mon Sep 17 00:00:00 2001 From: tusharmagar Date: Thu, 2 Apr 2026 16:43:48 +0530 Subject: [PATCH] remove from diff --- .../src/components/ai-elements/permission-request.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/x/apps/renderer/src/components/ai-elements/permission-request.tsx b/apps/x/apps/renderer/src/components/ai-elements/permission-request.tsx index 2a94a097..e9cef6dc 100644 --- a/apps/x/apps/renderer/src/components/ai-elements/permission-request.tsx +++ b/apps/x/apps/renderer/src/components/ai-elements/permission-request.tsx @@ -36,7 +36,7 @@ export const PermissionRequest = ({ ...props }: PermissionRequestProps) => { // Extract command from arguments if it's executeCommand - const command = toolCall.toolName === "executeCommand" + const command = toolCall.toolName === "executeCommand" ? (typeof toolCall.arguments === "object" && toolCall.arguments !== null && "command" in toolCall.arguments ? String(toolCall.arguments.command) : JSON.stringify(toolCall.arguments)) @@ -80,12 +80,12 @@ export const PermissionRequest = ({

{isResponded && ( -