mirror of
https://github.com/davidkaya/aryx.git
synced 2026-11-18 15:48:17 +01:00
fix: require tool approval by default
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
cc3c04b841
commit
29c054f47d
10 files changed
+56
-8
No files matched your search
@@ -198,7 +198,7 @@ export function PatternEditor({
|
||||
updateApprovalPolicy((current) => {
|
||||
const otherRules = (current?.rules ?? []).filter((r) => r.kind !== kind);
|
||||
if (!enabled) {
|
||||
return otherRules.length > 0 ? { rules: otherRules } : undefined;
|
||||
return { rules: otherRules };
|
||||
}
|
||||
return { rules: [...otherRules, { kind }] };
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user