nvrsion: Add Chat: Mesh Group Reconnection, Fix Mac instances not re-joining mesh groups, and Refactor LANTransport, LANBrowser, PeerClient, and PeerDialer to ensure connections form when devices are online.

Nucleic-Promote: 1
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 05:18:42 -07:00
co-authored by Nucleic
parent e5bc88113a
commit 29547370dc
2 changed files with 49 additions and 0 deletions
@@ -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
@@ -93,6 +96,7 @@ struct StartChatComposer: View {
baseBranch: branch.isEmpty ? nil : branch,
useWorktree: useWorktree, auto: auto)
draft = ""
onStart?()
}
} label: {
Image(systemName: "arrow.up.circle.fill").font(.title)