New-Chat Composer Default
Nucleic-Session: 7CB257B0-1B05-4EAF-B4FA-7BBFF1F8915D Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -27,8 +27,12 @@ struct StartChatComposer: View {
|
||||
@State private var useWorktree = true
|
||||
|
||||
private var projects: [WireProject] { store.dashboard.projects }
|
||||
/// The picker defaults to "No project" (nil) rather than auto-selecting the first project, so a
|
||||
/// typed prompt never quietly starts an agent in a repo the user didn't choose — they pick one
|
||||
/// explicitly before the send button lights. A project page's composer stays scoped via
|
||||
/// `lockedProject`.
|
||||
private var selected: WireProject? {
|
||||
lockedProject ?? (projects.first { $0.id == projectID } ?? projects.first)
|
||||
lockedProject ?? projects.first { $0.id == projectID }
|
||||
}
|
||||
private var controlled: Bool { selected?.isNucleicControlled ?? false }
|
||||
/// Auto-approve for the chat about to start: the user's choice off-control, but forced on for a
|
||||
|
||||
Reference in New Issue
Block a user