From 7f157bfae148141ae91d54596b9185afa3b4500a Mon Sep 17 00:00:00 2001 From: Andrew Harvard Date: Thu, 5 Feb 2026 11:07:45 -0500 Subject: [PATCH] Rename useMcpAppBridge back to useSandboxBridge --- ui/desktop/src/components/McpApps/McpAppRenderer.tsx | 4 ++-- .../McpApps/{useMcpAppBridge.ts => useSandboxBridge.ts} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename ui/desktop/src/components/McpApps/{useMcpAppBridge.ts => useSandboxBridge.ts} (98%) diff --git a/ui/desktop/src/components/McpApps/McpAppRenderer.tsx b/ui/desktop/src/components/McpApps/McpAppRenderer.tsx index 7e1e4a91b7..1608dd707b 100644 --- a/ui/desktop/src/components/McpApps/McpAppRenderer.tsx +++ b/ui/desktop/src/components/McpApps/McpAppRenderer.tsx @@ -9,7 +9,7 @@ import { AppEvents } from '../../constants/events'; */ import { useState, useCallback, useEffect } from 'react'; -import { useMcpAppBridge } from './useMcpAppBridge'; +import { useSandboxBridge } from './useSandboxBridge'; import { ToolInput, ToolInputPartial, @@ -247,7 +247,7 @@ export default function McpAppRenderer({ setIframeHeight(newHeight); }, []); - const { iframeRef, viewUrl, isLoading } = useMcpAppBridge({ + const { iframeRef, viewUrl, isLoading } = useSandboxBridge({ resourceHtml: resource.html || '', resourceCsp: resource.csp, resourcePermissions: resource.permissions, diff --git a/ui/desktop/src/components/McpApps/useMcpAppBridge.ts b/ui/desktop/src/components/McpApps/useSandboxBridge.ts similarity index 98% rename from ui/desktop/src/components/McpApps/useMcpAppBridge.ts rename to ui/desktop/src/components/McpApps/useSandboxBridge.ts index e707f0e928..d6c607cd1f 100644 --- a/ui/desktop/src/components/McpApps/useMcpAppBridge.ts +++ b/ui/desktop/src/components/McpApps/useSandboxBridge.ts @@ -32,7 +32,7 @@ import { useTheme } from '../../contexts/ThemeContext'; import packageJson from '../../../package.json'; import { errorMessage } from '../../utils/conversionUtils'; -interface McpAppBridgeOptions { +interface SandboxBridgeOptions { resourceHtml: string; resourceCsp: CspMetadata | null; resourcePermissions: PermissionsMetadata | null; @@ -49,13 +49,13 @@ interface McpAppBridgeOptions { onSizeChanged?: (height: number, width?: number) => void; } -interface McpAppBridgeResult { +interface SandboxBridgeResult { iframeRef: React.RefObject; viewUrl: string | null; isLoading: boolean; } -export function useMcpAppBridge(options: McpAppBridgeOptions): McpAppBridgeResult { +export function useSandboxBridge(options: SandboxBridgeOptions): SandboxBridgeResult { const { resourceHtml, resourceCsp,