mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
remove from diff
This commit is contained in:
parent
fd1632ea5c
commit
ad2c9f232c
1 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue