From 7e059459ad35b5544d89d3df9a4470558e6ffec6 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 04:55:06 -0700 Subject: [PATCH] Add New Chat Button Nucleic-Session: BB7AA593-185A-4A8F-A3DA-598EE63874E2 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Views/Composer.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Views/Composer.swift b/NucleicRemote/NucleicRemote/Views/Composer.swift index 44fef85..4da79f5 100644 --- a/NucleicRemote/NucleicRemote/Views/Composer.swift +++ b/NucleicRemote/NucleicRemote/Views/Composer.swift @@ -9,6 +9,9 @@ struct StartChatComposer: View { /// start typing a new chat immediately. Consumed (reset to false) once handled, so it never /// steals focus on a later Home appearance. `.constant(false)` for the iPhone/compact path. var focusNewChat: Binding = .constant(false) + /// Called after a chat is kicked off, so a host that presents the composer modally (e.g. the + /// Sessions tab's floating New-chat button) can dismiss itself. Home leaves it nil and stays put. + var onStart: (() -> Void)? = nil @State private var projectID: ProjectID? @State private var draft = "" @State private var auto = false