mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 02:22:40 +00:00
fix(ui): show file path in apply_patch request permission screen (#10079)
This commit is contained in:
parent
71ef43f9a0
commit
3eaf6f3baf
1 changed files with 3 additions and 1 deletions
|
|
@ -159,11 +159,13 @@ export const ApplyPatchTool = Tool.define("apply_patch", {
|
|||
}
|
||||
|
||||
// Check permissions if needed
|
||||
const relativePaths = fileChanges.map((c) => path.relative(Instance.worktree, c.filePath))
|
||||
await ctx.ask({
|
||||
permission: "edit",
|
||||
patterns: fileChanges.map((c) => path.relative(Instance.worktree, c.filePath)),
|
||||
patterns: relativePaths,
|
||||
always: ["*"],
|
||||
metadata: {
|
||||
filepath: relativePaths.join(", "),
|
||||
diff: totalDiff,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue