fix(core): authorize patch move destinations (#38133)
This commit is contained in:
parent
99b2e78d75
commit
dbfbb13ccc
4 changed files with 58 additions and 4 deletions
|
|
@ -189,6 +189,7 @@ export const Plugin = {
|
|||
catch: (error) => new ToolFailure({ message: `patch verification failed: ${String(error)}` }),
|
||||
})
|
||||
const moveTarget = hunk.movePath ? resolveTarget(location, hunk.movePath) : undefined
|
||||
if (moveTarget) targets.push(moveTarget)
|
||||
if (moveTarget?.externalDirectory) {
|
||||
yield* permission.assert({
|
||||
action: "external_directory",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue