mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-07 15:39:38 +08:00
fix: undefined buttons variable in AgentLoop
This commit is contained in:
@@ -211,7 +211,7 @@ func (al *AgentLoop) enqueueMessage(ctx context.Context, msg bus.InboundMessage)
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
case <-time.After(2 * time.Second):
|
case <-time.After(2 * time.Second):
|
||||||
al.bus.PublishOutbound(bus.OutboundMessage{
|
al.bus.PublishOutbound(bus.OutboundMessage{
|
||||||
Buttons: buttons,
|
Buttons: nil,
|
||||||
Channel: msg.Channel,
|
Channel: msg.Channel,
|
||||||
ChatID: msg.ChatID,
|
ChatID: msg.ChatID,
|
||||||
Content: "Message queue is busy. Please try again shortly.",
|
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 != "" {
|
if response != "" {
|
||||||
al.bus.PublishOutbound(bus.OutboundMessage{
|
al.bus.PublishOutbound(bus.OutboundMessage{
|
||||||
Buttons: buttons,
|
Buttons: nil,
|
||||||
Channel: msg.Channel,
|
Channel: msg.Channel,
|
||||||
ChatID: msg.ChatID,
|
ChatID: msg.ChatID,
|
||||||
Content: response,
|
Content: response,
|
||||||
|
|||||||
Reference in New Issue
Block a user