fix: add patch to auto-allow for acceptedits mode
This commit is contained in:
@@ -66,8 +66,16 @@ class PermissionModeManager {
|
||||
return "allow";
|
||||
|
||||
case "acceptEdits":
|
||||
// Auto-allow edit tools: Write, Edit, MultiEdit, NotebookEdit
|
||||
if (["Write", "Edit", "MultiEdit", "NotebookEdit"].includes(toolName)) {
|
||||
// Auto-allow edit tools: Write, Edit, MultiEdit, NotebookEdit, apply_patch
|
||||
if (
|
||||
[
|
||||
"Write",
|
||||
"Edit",
|
||||
"MultiEdit",
|
||||
"NotebookEdit",
|
||||
"apply_patch",
|
||||
].includes(toolName)
|
||||
) {
|
||||
return "allow";
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user