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