Fix infinite iteration loop by marking message tool results as handled.

This commit is contained in:
stevef 2026-04-20 11:45:47 +02:00
parent 6a4a3ac89a
commit eee5b0c444

View file

@ -137,7 +137,8 @@ func (t *MessageTool) Execute(ctx context.Context, args map[string]any) *ToolRes
// Silent: user already received the message directly // Silent: user already received the message directly
return &ToolResult{ return &ToolResult{
ForLLM: fmt.Sprintf("Message sent to %s:%s", channel, chatID), ForLLM: fmt.Sprintf("Message sent to %s:%s", channel, chatID),
Silent: true, Silent: true,
ResponseHandled: true,
} }
} }