remove from diff

This commit is contained in:
tusharmagar 2026-04-02 16:43:48 +05:30
parent fd1632ea5c
commit ad2c9f232c

View file

@ -36,7 +36,7 @@ export const PermissionRequest = ({
...props ...props
}: PermissionRequestProps) => { }: PermissionRequestProps) => {
// Extract command from arguments if it's executeCommand // 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 ? (typeof toolCall.arguments === "object" && toolCall.arguments !== null && "command" in toolCall.arguments
? String(toolCall.arguments.command) ? String(toolCall.arguments.command)
: JSON.stringify(toolCall.arguments)) : JSON.stringify(toolCall.arguments))
@ -80,12 +80,12 @@ export const PermissionRequest = ({
</p> </p>
</div> </div>
{isResponded && ( {isResponded && (
<Badge <Badge
variant="secondary" variant="secondary"
className={cn( className={cn(
"shrink-0", "shrink-0",
isApproved isApproved
? "bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-400" ? "bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-400"
: "bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400" : "bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400"
)} )}
> >