From 2e18805c4722924ae9239b706a209a4d50603bd7 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Wed, 13 Aug 2025 11:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ClaudeCodeSession.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/ClaudeCodeSession.tsx b/src/components/ClaudeCodeSession.tsx index 09204c9..d7b1bab 100644 --- a/src/components/ClaudeCodeSession.tsx +++ b/src/components/ClaudeCodeSession.tsx @@ -29,7 +29,6 @@ import { open } from "@tauri-apps/plugin-dialog"; import { listen, type UnlistenFn } from "@tauri-apps/api/event"; import { StreamMessage } from "./StreamMessage"; import { FloatingPromptInput, type FloatingPromptInputRef } from "./FloatingPromptInput"; -import { ErrorBoundary } from "./ErrorBoundary"; import { TimelineNavigator } from "./TimelineNavigator"; import { CheckpointSettings } from "./CheckpointSettings"; import { SlashCommandsManager } from "./SlashCommandsManager"; @@ -130,10 +129,7 @@ export const ClaudeCodeSession: React.FC = ({ const [queuedPrompts, setQueuedPrompts] = useState>([]); // 使用布局管理器的预览功能 - const handleOpenPreview = useCallback((url: string) => { - openLayoutPreview(url); - setShowPreviewPrompt(false); - }, [openLayoutPreview]); + // Note: openLayoutPreview is used directly instead of wrapping in handleOpenPreview const handleClosePreview = useCallback(() => { closeLayoutPreview();