diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-21 19:48:36 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-21 19:53:55 +0200 |
| commit | 3a6a26981a8074b6ab0eaadb520db986e04799ff (patch) | |
| tree | 4fe2c022305f13775f2cab3cdd80cd808259765b /internal/llm/tools/patch.go | |
| parent | d7569d79c6da1437fe46343ed13810df6c8cae1f (diff) | |
| download | opencode-3a6a26981a8074b6ab0eaadb520db986e04799ff.tar.gz opencode-3a6a26981a8074b6ab0eaadb520db986e04799ff.zip | |
init command
Diffstat (limited to 'internal/llm/tools/patch.go')
| -rw-r--r-- | internal/llm/tools/patch.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/llm/tools/patch.go b/internal/llm/tools/patch.go index 903404497..7e20e378e 100644 --- a/internal/llm/tools/patch.go +++ b/internal/llm/tools/patch.go @@ -194,6 +194,7 @@ func (p *patchTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error patchDiff, _, _ := diff.GenerateDiff("", *change.NewContent, path) p := p.permissions.Request( permission.CreatePermissionRequest{ + SessionID: sessionID, Path: dir, ToolName: PatchToolName, Action: "create", @@ -220,6 +221,7 @@ func (p *patchTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error dir := filepath.Dir(path) p := p.permissions.Request( permission.CreatePermissionRequest{ + SessionID: sessionID, Path: dir, ToolName: PatchToolName, Action: "update", @@ -238,6 +240,7 @@ func (p *patchTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error patchDiff, _, _ := diff.GenerateDiff(*change.OldContent, "", path) p := p.permissions.Request( permission.CreatePermissionRequest{ + SessionID: sessionID, Path: dir, ToolName: PatchToolName, Action: "delete", |
