fix whatsapp

This commit is contained in:
lpf
2026-03-09 19:35:12 +08:00
parent de77e6c786
commit 0b9192132f
25 changed files with 2311 additions and 139 deletions

View File

@@ -931,7 +931,13 @@ func (al *AgentLoop) prepareOutbound(msg bus.InboundMessage, response string) (b
if al.shouldSuppressOutbound(msg, clean) {
return bus.OutboundMessage{}, false
}
outbound := bus.OutboundMessage{Channel: msg.Channel, ChatID: msg.ChatID, Content: clean, ReplyToID: strings.TrimSpace(replyToID)}
outbound := bus.OutboundMessage{
Channel: msg.Channel,
ChatID: msg.ChatID,
Content: clean,
ReplyToID: strings.TrimSpace(replyToID),
ReplyToSender: strings.TrimSpace(msg.SenderID),
}
if msg.Channel == "system" {
outbound.Channel, outbound.ChatID = resolveSystemOrigin(msg.ChatID)
}