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