summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/tools/view.go
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-14 11:08:17 +0200
committerKujtim Hoxha <[email protected]>2025-04-21 13:41:27 +0200
commit921f5ee5bd74837ff4566fc2d1e45051c87d9c38 (patch)
tree4d8e20f5b1ee8fc2c99adbcedb400d6657e8f1ef /internal/llm/tools/view.go
parent9ae05fea12ad05ea356a057f67afdde46d548843 (diff)
downloadopencode-921f5ee5bd74837ff4566fc2d1e45051c87d9c38.tar.gz
opencode-921f5ee5bd74837ff4566fc2d1e45051c87d9c38.zip
handle errors correctly in the edit tool
Diffstat (limited to 'internal/llm/tools/view.go')
-rw-r--r--internal/llm/tools/view.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/llm/tools/view.go b/internal/llm/tools/view.go
index a687be015..a0600a2a1 100644
--- a/internal/llm/tools/view.go
+++ b/internal/llm/tools/view.go
@@ -177,7 +177,7 @@ func (v *viewTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
params.Offset+len(strings.Split(content, "\n")))
}
output += "\n</file>\n"
- output += appendDiagnostics(filePath, v.lspClients)
+ output += getDiagnostics(filePath, v.lspClients)
recordFileRead(filePath)
return NewTextResponse(output), nil
}