删除无用

This commit is contained in:
2025-08-13 11:21:05 +08:00
parent bb148f4106
commit 2e18805c47

View File

@@ -29,7 +29,6 @@ import { open } from "@tauri-apps/plugin-dialog";
import { listen, type UnlistenFn } from "@tauri-apps/api/event"; import { listen, type UnlistenFn } from "@tauri-apps/api/event";
import { StreamMessage } from "./StreamMessage"; import { StreamMessage } from "./StreamMessage";
import { FloatingPromptInput, type FloatingPromptInputRef } from "./FloatingPromptInput"; import { FloatingPromptInput, type FloatingPromptInputRef } from "./FloatingPromptInput";
import { ErrorBoundary } from "./ErrorBoundary";
import { TimelineNavigator } from "./TimelineNavigator"; import { TimelineNavigator } from "./TimelineNavigator";
import { CheckpointSettings } from "./CheckpointSettings"; import { CheckpointSettings } from "./CheckpointSettings";
import { SlashCommandsManager } from "./SlashCommandsManager"; import { SlashCommandsManager } from "./SlashCommandsManager";
@@ -130,10 +129,7 @@ export const ClaudeCodeSession: React.FC<ClaudeCodeSessionProps> = ({
const [queuedPrompts, setQueuedPrompts] = useState<Array<{ id: string; prompt: string; model: "sonnet" | "opus" }>>([]); const [queuedPrompts, setQueuedPrompts] = useState<Array<{ id: string; prompt: string; model: "sonnet" | "opus" }>>([]);
// 使用布局管理器的预览功能 // 使用布局管理器的预览功能
const handleOpenPreview = useCallback((url: string) => { // Note: openLayoutPreview is used directly instead of wrapping in handleOpenPreview
openLayoutPreview(url);
setShowPreviewPrompt(false);
}, [openLayoutPreview]);
const handleClosePreview = useCallback(() => { const handleClosePreview = useCallback(() => {
closeLayoutPreview(); closeLayoutPreview();