From 33f404555a1b91d2afa9ade60425cc9833e7bc92 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Fri, 3 Jul 2026 18:54:41 -0700 Subject: [PATCH] Remove Permission Button Nucleic-Session: E0927223-36BE-4F01-9E69-575442FC3E5A Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift b/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift index 9d73d91..76edfbf 100644 --- a/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift +++ b/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift @@ -76,7 +76,10 @@ struct ApprovalCardView: View { .disabled(!allowEnabled) } - if !store.capabilities.allowAlwaysScopes.isEmpty { + // A destructive action (rm, force-push, reset --hard, …) offers no remembered + // allow: every one must be a deliberate, one-off approval, never granted in a + // way that lets the next one through unseen. Mirrors the Mac. + if approval.risk != .destructive, !store.capabilities.allowAlwaysScopes.isEmpty { Menu("Allow always…") { ForEach(store.capabilities.allowAlwaysScopes, id: \.self) { scope in Button(alwaysLabel(scope)) {