Remove Permission Button

Nucleic-Session: E0927223-36BE-4F01-9E69-575442FC3E5A
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-03 18:54:41 -07:00
co-authored by Nucleic
parent f84ccd47de
commit 33f404555a
@@ -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)) {