fix(agent): preserve reply metadata in /btw immediate responses
This commit is contained in:
parent
3c3c520602
commit
0cb5bdee0d
1 changed files with 9 additions and 0 deletions
|
|
@ -659,6 +659,12 @@ func (al *AgentLoop) drainBusToSteering(ctx context.Context, activeScope, active
|
|||
al.bus.PublishOutbound(ctx, bus.OutboundMessage{
|
||||
Channel: msg.Channel,
|
||||
ChatID: msg.ChatID,
|
||||
Context: outboundContextFromInbound(
|
||||
&msg.Context,
|
||||
msg.Channel,
|
||||
msg.ChatID,
|
||||
msg.Context.ReplyToMessageID,
|
||||
),
|
||||
Content: response,
|
||||
})
|
||||
}
|
||||
|
|
@ -4083,6 +4089,9 @@ func (al *AgentLoop) tryHandlePriorityCommand(ctx context.Context, msg bus.Inbou
|
|||
SenderID: msg.SenderID,
|
||||
SenderDisplayName: msg.Sender.DisplayName,
|
||||
Media: msg.Media,
|
||||
MessageID: msg.MessageID,
|
||||
ReplyToMessageID: msg.Context.ReplyToMessageID,
|
||||
InboundContext: &msg.Context,
|
||||
}
|
||||
|
||||
response, handled := al.handleCommand(ctx, msg, agent, &opts)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue