summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/tools/write.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/write.go
parent9ae05fea12ad05ea356a057f67afdde46d548843 (diff)
downloadopencode-921f5ee5bd74837ff4566fc2d1e45051c87d9c38.tar.gz
opencode-921f5ee5bd74837ff4566fc2d1e45051c87d9c38.zip
handle errors correctly in the edit tool
Diffstat (limited to 'internal/llm/tools/write.go')
-rw-r--r--internal/llm/tools/write.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/llm/tools/write.go b/internal/llm/tools/write.go
index 1b087c193..9797239d9 100644
--- a/internal/llm/tools/write.go
+++ b/internal/llm/tools/write.go
@@ -183,7 +183,7 @@ func (w *writeTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error
result := fmt.Sprintf("File successfully written: %s", filePath)
result = fmt.Sprintf("<result>\n%s\n</result>", result)
- result += appendDiagnostics(filePath, w.lspClients)
+ result += getDiagnostics(filePath, w.lspClients)
return WithResponseMetadata(NewTextResponse(result),
WriteResponseMetadata{
Additions: stats.Additions,