From 7c1dc839e3ffebda104aa2fee23610256723f953 Mon Sep 17 00:00:00 2001 From: arnestrickmann <115920878+arnestrickmann@users.noreply.github.com> Date: Thu, 11 Dec 2025 11:59:09 -0800 Subject: [PATCH 1/2] chore: apply workspace changes --- src/electron/main.ts | 4 ++-- src/ui/components/Chat.tsx | 37 +------------------------------ src/ui/components/SparkleIcon.tsx | 2 -- src/ui/components/Spinner.tsx | 1 - 4 files changed, 3 insertions(+), 41 deletions(-) diff --git a/src/electron/main.ts b/src/electron/main.ts index 2e59c30..1e20011 100644 --- a/src/electron/main.ts +++ b/src/electron/main.ts @@ -45,7 +45,7 @@ async function createWindow() { mainWindow.webContents.on( "did-fail-load", - (event, errorCode, errorDescription) => { + (_event, errorCode, errorDescription) => { console.error("Failed to load:", errorCode, errorDescription); }, ); @@ -57,7 +57,7 @@ async function createWindow() { ipcMain.handle( "find-similar-chunks", async ( - event, + _event, queryText: string, limit?: number, distanceThreshold?: number, diff --git a/src/ui/components/Chat.tsx b/src/ui/components/Chat.tsx index 8c1d500..87bb226 100644 --- a/src/ui/components/Chat.tsx +++ b/src/ui/components/Chat.tsx @@ -47,17 +47,6 @@ const MODELS = { type ModelType = (typeof MODELS)[keyof typeof MODELS]; -interface ModelConfig { - id: ModelType; - name: string; - displayName: string; -} - -const MODEL_CONFIGS: ModelConfig[] = [ - { id: MODELS.LLAMA2, name: "llama2", displayName: "Llama 2" }, - { id: MODELS.LLAMA3, name: "llama3.2:3b", displayName: "Llama 3" }, -]; - export default function Chat({ onSetupComplete }: ChatProps) { const [messages, setMessages] = useState([]); const [input, setInput] = useState(""); @@ -66,8 +55,7 @@ export default function Chat({ onSetupComplete }: ChatProps) { running: false, }); const [currentResponse, setCurrentResponse] = useState(""); - const [showInstructions, setShowInstructions] = useState(false); - const [selectedModel, setSelectedModel] = useState(MODELS.LLAMA3); + const [selectedModel] = useState(MODELS.LLAMA3); const [isStarting, setIsStarting] = useState(false); const [showInfo, setShowInfo] = useState(false); const noteReferences: Record = {}; @@ -152,29 +140,6 @@ export default function Chat({ onSetupComplete }: ChatProps) { } }; - const handlePullModel = async () => { - try { - setIsLoading(true); - await window.electron.pullOllamaModel(selectedModel); - setOllamaStatus({ running: true, modelAvailable: true }); - } catch (error) { - console.error(`Failed to pull ${selectedModel} model:`, error); - setOllamaStatus((prev) => ({ ...prev, error: undefined })); - } finally { - setIsLoading(false); - } - }; - - useEffect(() => { - const handleToggleInstructions = () => setShowInstructions((prev) => !prev); - window.addEventListener("toggleInstructions", handleToggleInstructions); - return () => - window.removeEventListener( - "toggleInstructions", - handleToggleInstructions - ); - }, []); - const generateResponse = async ( prompt: string, onProgress: (text: string) => void diff --git a/src/ui/components/SparkleIcon.tsx b/src/ui/components/SparkleIcon.tsx index 9ba7f24..5375c09 100644 --- a/src/ui/components/SparkleIcon.tsx +++ b/src/ui/components/SparkleIcon.tsx @@ -1,5 +1,3 @@ -import React from "react"; - interface SparkleIconProps { className?: string; } diff --git a/src/ui/components/Spinner.tsx b/src/ui/components/Spinner.tsx index 83d9012..e58bb81 100644 --- a/src/ui/components/Spinner.tsx +++ b/src/ui/components/Spinner.tsx @@ -1,5 +1,4 @@ import { motion } from "framer-motion"; -import React from "react"; const Spinner = () => ( Date: Thu, 11 Dec 2025 11:59:10 -0800 Subject: [PATCH 2/2] stagehand: prepare pull request --- PLANNING.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PLANNING.md diff --git a/PLANNING.md b/PLANNING.md new file mode 100644 index 0000000..1099dc6 --- /dev/null +++ b/PLANNING.md @@ -0,0 +1,28 @@ +# Plan Mode (Read-only) + +# Plan Mode Policy + +Plan mode is a special operating mode that allows research, analysis, and planning without making any changes to your system or codebase. + +## What You Can Do +- Read files and examine code +- Search through the codebase +- Analyze project structure and dependencies +- Review documentation and external sources +- Propose strategies and implementation plans + +## What You Cannot Do +- Edit files or apply patches +- Run bash commands that modify anything +- Create or delete files +- Make git commits or push branches +- Install packages or change configurations + +## Workflow When Plan Mode Is Active +1) Research Phase: Gather necessary information using read-only tools +2) Plan Creation: Develop a clear, step-by-step implementation plan +3) Plan Presentation: Present the plan and ask for approval (use exit_plan_mode when ready) +4) User Approval: Wait for explicit approval +5) Execution Phase: Only after approval should changes be made + +Note: If you detect the user wants to plan before executing, remain in plan mode and avoid making changes.