fix: undefined buttons variable in AgentLoop

This commit is contained in:
root
2026-02-14 17:09:06 +00:00
parent 4ed24b57e3
commit 5dfa0f4d72

View File

@@ -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,