handle errors correctly in the edit tool

This commit is contained in:
Kujtim Hoxha
2025-04-21 13:41:27 +02:00
parent 9ae05fea12
commit 921f5ee5bd
4 changed files with 78 additions and 82 deletions
+1 -1
View File
@@ -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
}