Add New Chat Button

Nucleic-Session: BB7AA593-185A-4A8F-A3DA-598EE63874E2
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 04:55:06 -07:00
co-authored by Nucleic
parent f85add8f14
commit 7e059459ad
@@ -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<Bool> = .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