diff options
| author | iltenahmet <[email protected]> | 2026-01-22 14:43:11 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-22 13:43:11 -0600 |
| commit | 3eaf6f3baf3d9fc6b69f3d92ecc7b764c993ff0e (patch) | |
| tree | a4ec8a4fcb3455daf37918d890045350912ee30a | |
| parent | 71ef43f9a0b820212944f73eb84908ead7d11dd9 (diff) | |
| download | opencode-3eaf6f3baf3d9fc6b69f3d92ecc7b764c993ff0e.tar.gz opencode-3eaf6f3baf3d9fc6b69f3d92ecc7b764c993ff0e.zip | |
fix(ui): show file path in apply_patch request permission screen (#10079)
| -rw-r--r-- | packages/opencode/src/tool/apply_patch.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/apply_patch.ts b/packages/opencode/src/tool/apply_patch.ts index e848fc905..9883f20a2 100644 --- a/packages/opencode/src/tool/apply_patch.ts +++ b/packages/opencode/src/tool/apply_patch.ts @@ -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, }, }) |
