Skip to content

fix: check apply_patch move destinations#37386

Draft
dev-willbird1936 wants to merge 1 commit into
anomalyco:devfrom
dev-willbird1936:apply-move-destinations
Draft

fix: check apply_patch move destinations#37386
dev-willbird1936 wants to merge 1 commit into
anomalyco:devfrom
dev-willbird1936:apply-move-destinations

Conversation

@dev-willbird1936

Copy link
Copy Markdown

Issue for this PR

Closes #37382

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

apply_patch currently asks for edit permission using only a move's source path, even though it writes the destination. This includes both normalized source and destination paths in the permission patterns, deduplicates them, and adds a regression assertion.

How did you verify your code works?

  • bun test --timeout 60000 test/tool/apply_patch.test.ts - 27 passed
  • bun run typecheck - candidate reached only unrelated existing errors in src/provider/transform.ts, src/tool/task.ts, and their tests; current hosted CI remains required
  • bunx prettier --check src/tool/apply_patch.ts test/tool/apply_patch.test.ts - passed
  • git diff --check 1d2a7b4c860f6a29eb90bdda07757b2adf34ab61..HEAD - passed

Screenshots / recordings

Not applicable; this is tool permission-path behavior.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apply_patch move permissions omit destination path

1 participant