fix(agent): requeue non-steering messages back to inbound instead of outbound

This commit is contained in:
colvin 2026-03-23 17:06:23 +08:00
parent 3500080abb
commit ea60b743e5

View file

@ -1361,11 +1361,7 @@ func (al *AgentLoop) requeueInboundMessage(msg bus.InboundMessage) error {
}
pubCtx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
return al.bus.PublishOutbound(pubCtx, bus.OutboundMessage{
Channel: msg.Channel,
ChatID: msg.ChatID,
Content: msg.Content,
})
return al.bus.PublishInbound(pubCtx, msg)
}
func (al *AgentLoop) processSystemMessage(