New-Chat Composer Default

Nucleic-Session: 7CB257B0-1B05-4EAF-B4FA-7BBFF1F8915D
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-06 00:40:36 -07:00
co-authored by Nucleic
parent b11c5e79ac
commit 5124205b70
@@ -46,12 +46,15 @@ struct StartChatComposer: View {
HStack { HStack {
if lockedProject == nil { if lockedProject == nil {
Menu { Menu {
Button("No project") { projectID = nil }
if !projects.isEmpty { Divider() }
ForEach(projects) { project in ForEach(projects) { project in
Button(project.name) { projectID = project.id } Button(project.name) { projectID = project.id }
} }
} label: { } label: {
// The model also selects the backend, so the picker offers every project. // The model also selects the backend, so the picker offers every project.
Label(selected?.name ?? "Select a project", systemImage: "folder") // Defaults to "No project" until one is chosen.
Label(selected?.name ?? "No project", systemImage: "folder")
.font(.subheadline) .font(.subheadline)
} }
} else { } else {