interface PermissionRequest { requestId: string; toolName: string; toolInput: Record; } interface PermissionDialogProps { permissionQueue: PermissionRequest[]; onResponse: (approved: boolean, alwaysAllow?: boolean) => void; } export function PermissionDialog({ permissionQueue, onResponse, }: PermissionDialogProps) { const current = permissionQueue[0]; if (!current) return null; return (

Permission Request {permissionQueue.length > 1 && ( (+{permissionQueue.length - 1} queued) )}

The agent wants to use the{" "} {current.toolName} tool. Do you approve?

{Object.keys(current.toolInput).length > 0 && (
						{JSON.stringify(current.toolInput, null, 2)}
					
)}
); }