From b11c5e79ac10417bec5487b3130295d1b82758d7 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 00:40:31 -0700 Subject: [PATCH] New-Chat Composer Default Nucleic-Session: 7CB257B0-1B05-4EAF-B4FA-7BBFF1F8915D Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Views/Composer.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Views/Composer.swift b/NucleicRemote/NucleicRemote/Views/Composer.swift index d896f0a..9e4613b 100644 --- a/NucleicRemote/NucleicRemote/Views/Composer.swift +++ b/NucleicRemote/NucleicRemote/Views/Composer.swift @@ -27,8 +27,12 @@ struct StartChatComposer: View { @State private var useWorktree = true private var projects: [WireProject] { store.dashboard.projects } + /// The picker defaults to "No project" (nil) rather than auto-selecting the first project, so a + /// typed prompt never quietly starts an agent in a repo the user didn't choose — they pick one + /// explicitly before the send button lights. A project page's composer stays scoped via + /// `lockedProject`. private var selected: WireProject? { - lockedProject ?? (projects.first { $0.id == projectID } ?? projects.first) + lockedProject ?? projects.first { $0.id == projectID } } private var controlled: Bool { selected?.isNucleicControlled ?? false } /// Auto-approve for the chat about to start: the user's choice off-control, but forced on for a