From 005a32a8d52a3cd162e0e432705e92013ebf854d Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Thu, 28 Nov 2024 19:10:41 +0800 Subject: [PATCH] fix: InvokeTool response should correctly handle error messages --- internal/core/plugin_daemon/tool_service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/core/plugin_daemon/tool_service.go b/internal/core/plugin_daemon/tool_service.go index 4b3ba50..c645c1b 100644 --- a/internal/core/plugin_daemon/tool_service.go +++ b/internal/core/plugin_daemon/tool_service.go @@ -57,6 +57,7 @@ func InvokeTool( for response.Next() { item, err := response.Read() if err != nil { + newResponse.WriteError(err) return }