From 27b6e3499d1c96982c67e445a8ee2fcbb16d9b9f Mon Sep 17 00:00:00 2001
From: bndw <ben@bdw.to>
Date: Wed, 4 Mar 2026 22:33:27 -0800
Subject: feat: Remove auto-send block from handleConfirmNewSession in App.tsx
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- ✅ Remove auto-send block from handleConfirmNewSession in App.tsx
---
 renderer/src/App.tsx | 25 ++++++-------------------
 1 file changed, 6 insertions(+), 19 deletions(-)

(limited to 'renderer/src/App.tsx')

diff --git a/renderer/src/App.tsx b/renderer/src/App.tsx
index 5fb3dd1..b53184b 100644
--- a/renderer/src/App.tsx
+++ b/renderer/src/App.tsx
@@ -487,22 +487,7 @@ export function App() {
     setMessages([]);
     setDocumentContent("");
     setOriginalContent("");
-
-    // For sessions that start beyond research, kick off Claude immediately
-    // with the same message used when advancing into that phase via Submit.
-    if (phase === "plan" || phase === "implement") {
-      const initialMsg =
-        phase === "plan"
-          ? "Create a detailed implementation plan based on the research."
-          : "Begin implementing the plan.";
-      setLoadingBySession((prev) => ({ ...prev, [session.id]: true }));
-      try {
-        await api.sendMessage(session.id, initialMsg);
-      } catch (err) {
-        setError(err instanceof Error ? err.message : "Failed to start session");
-        setLoadingBySession((prev) => ({ ...prev, [session.id]: false }));
-      }
-    }
+    // User starts the conversation — no auto-send for manually-chosen phases.
   };
 
   const handleDeleteProject = async (id: string) => {
@@ -552,8 +537,6 @@ export function App() {
     <div className="app">
       <Header
         selectedSession={selectedSession}
-        theme={theme}
-        onToggleTheme={handleToggleTheme}
         gitBranch={selectedSession?.git_branch ?? null}
         onOpenSettings={() => setShowSettings(true)}
         viewPhase={viewPhase}
@@ -661,7 +644,11 @@ export function App() {
       />
 
       {showSettings && (
-        <SettingsPage onClose={() => setShowSettings(false)} />
+        <SettingsPage
+          onClose={() => setShowSettings(false)}
+          theme={theme}
+          onToggleTheme={handleToggleTheme}
+        />
       )}
 
       {showNewSessionModal && (
-- 
cgit v1.2.3

