-
-
- }
- />
- } />
-
+
+
+ {/* Always render ChatContent but control its visibility */}
+
+
+
+ }
+ />
+ } />
+
+
+
+ {/* Always render WingView but control its visibility */}
+
+
+
);
-}
\ No newline at end of file
+}
diff --git a/ui/desktop/src/LauncherWindow.tsx b/ui/desktop/src/LauncherWindow.tsx
index a34508541..ce1955ced 100644
--- a/ui/desktop/src/LauncherWindow.tsx
+++ b/ui/desktop/src/LauncherWindow.tsx
@@ -5,7 +5,6 @@ declare global {
electron: {
hideWindow: () => void;
createChatWindow: (query: string) => void;
- createWingToWingWindow: (query: string) => void;
};
}
}
@@ -18,7 +17,7 @@ export default function SpotlightWindow() {
e.preventDefault();
if (query.trim()) {
// Create a new chat window with the query
- window.electron.createWingToWingWindow(query);
+ window.electron.createChatWindow(query);
setQuery('');
inputRef.current.blur()
}
diff --git a/ui/desktop/src/WingToWingWindow.tsx b/ui/desktop/src/WingToWingWindow.tsx
deleted file mode 100644
index bcabdffeb..000000000
--- a/ui/desktop/src/WingToWingWindow.tsx
+++ /dev/null
@@ -1,105 +0,0 @@
-import React from 'react';
-import { getApiUrl } from './config';
-import { useChat } from 'ai/react';
-import { Card } from "./components/ui/card"
-import type { Chat } from './ChatWindow';
-import ToolInvocation from './components/ToolInvocation';
-
-interface FinishMessagePart {
- finishReason: 'stop' | 'length' | 'content-filter' | 'tool-calls' | 'error' | 'other' | 'unknown';
- usage: {
- promptTokens: number;
- completionTokens: number;
- };
-}
-
-const LoadingSpinner = () => (
-