Vendored
+1
-1
@@ -781,7 +781,7 @@ async function runTurn(ctx) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (sandbox.needsPermission(name, mode) && !planMode.isPlanFilePath(args.path, tracker.planPath)) {
|
||||
if (customTools.needsPermission(session.id, name, mode) || (sandbox.needsPermission(name, mode) && !((name === 'write_file' || name === 'search_replace') && planMode.isPlanFilePath(args.path, tracker.planPath)))) {
|
||||
let remembered = null;
|
||||
try {
|
||||
remembered = permStore.resolve(name, args);
|
||||
|
||||
Reference in New Issue
Block a user