Lock Auto Mode Logic
Nucleic-Session: 787E9BFA-F481-4804-95DB-E063FDB518B0 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -131,10 +131,18 @@ struct SessionDetailView: View {
|
||||
.font(.caption2.weight(.semibold)).foregroundStyle(.primary)
|
||||
.help("Context window used")
|
||||
}
|
||||
Toggle(isOn: Binding(get: { summary.auto }, set: { store.setSessionAuto(sessionID, $0) })) {
|
||||
Label("Auto", systemImage: summary.auto ? "bolt.fill" : "bolt.slash")
|
||||
// Locked on for a Nucleic Control project — those chats always run autonomously, and
|
||||
// the host keeps Auto on regardless of what the phone sends, so show it locked on to
|
||||
// match rather than offering a toggle that wouldn't take.
|
||||
Toggle(isOn: Binding(get: { controlled || summary.auto },
|
||||
set: { store.setSessionAuto(sessionID, $0) })) {
|
||||
Label("Auto", systemImage: (controlled || summary.auto) ? "bolt.fill" : "bolt.slash")
|
||||
}
|
||||
.toggleStyle(.button).tint(Palette.accent).font(.caption2.weight(.semibold))
|
||||
.disabled(controlled)
|
||||
.help(controlled
|
||||
? "Auto-approve is always on for Nucleic Control chats — they run autonomously."
|
||||
: "Auto-approve safe actions; destructive ones still ask.")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user