telegram streaming: finalize placeholder when response suppressed

This commit is contained in:
DBT
2026-02-26 12:55:53 +00:00
parent 818408962d
commit 4f5fb0e6cf
2 changed files with 15 additions and 1 deletions

View File

@@ -324,6 +324,9 @@ func (al *AgentLoop) processInbound(ctx context.Context, msg bus.InboundMessage)
suppressed = true
}
}
if msg.Channel == "telegram" && suppressed {
al.bus.PublishOutbound(bus.OutboundMessage{Channel: msg.Channel, ChatID: msg.ChatID, Action: "finalize"})
}
al.audit.Record(trigger, msg.Channel, msg.SessionKey, suppressed, err)
}