From eee5b0c444930892b69cfcc792a965e7b688c815 Mon Sep 17 00:00:00 2001 From: stevef Date: Mon, 20 Apr 2026 11:45:47 +0200 Subject: [PATCH] Fix infinite iteration loop by marking message tool results as handled. --- pkg/tools/integration/message.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/tools/integration/message.go b/pkg/tools/integration/message.go index 98d87bcb3..68912fdd5 100644 --- a/pkg/tools/integration/message.go +++ b/pkg/tools/integration/message.go @@ -137,7 +137,8 @@ func (t *MessageTool) Execute(ctx context.Context, args map[string]any) *ToolRes // Silent: user already received the message directly return &ToolResult{ - ForLLM: fmt.Sprintf("Message sent to %s:%s", channel, chatID), - Silent: true, + ForLLM: fmt.Sprintf("Message sent to %s:%s", channel, chatID), + Silent: true, + ResponseHandled: true, } }