From 5dfa0f4d72bc28ff17f57fb7018a0dd5158def80 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 14 Feb 2026 17:09:06 +0000 Subject: [PATCH] fix: undefined buttons variable in AgentLoop --- pkg/agent/loop.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index 15ce279..7510c20 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -211,7 +211,7 @@ func (al *AgentLoop) enqueueMessage(ctx context.Context, msg bus.InboundMessage) case <-ctx.Done(): case <-time.After(2 * time.Second): al.bus.PublishOutbound(bus.OutboundMessage{ - Buttons: buttons, + Buttons: nil, Channel: msg.Channel, ChatID: msg.ChatID, Content: "Message queue is busy. Please try again shortly.", @@ -277,7 +277,7 @@ func (al *AgentLoop) runSessionWorker(ctx context.Context, sessionKey string, wo if response != "" { al.bus.PublishOutbound(bus.OutboundMessage{ - Buttons: buttons, + Buttons: nil, Channel: msg.Channel, ChatID: msg.ChatID, Content: response,