mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-16 10:15:12 +00:00
feat(channels): use generated quick ack progress
This commit is contained in:
1 parent
afa32f5fa0
commit
32273f04d3
20 files changed
+431
-68
No files matched your search
@@ -539,10 +539,11 @@ func processNormalMessage(
|
||||
return
|
||||
}
|
||||
|
||||
interimReplyEnabled := blockReplyEnabled || channels.ShouldDeliverGeneratedProgress(chatBehavior, streaming)
|
||||
// Dedup: if block replies were delivered and the final content matches the last
|
||||
// block reply, suppress the final message to avoid duplicate delivery.
|
||||
// Only applies when blockReply is enabled (otherwise nothing was delivered).
|
||||
if blockReplyEnabled && outcome.Result.BlockReplies > 0 && outcome.Result.Content == outcome.Result.LastBlockReply && len(outcome.Result.Media) == 0 {
|
||||
// Only applies when an interim reply mode is enabled (otherwise nothing was delivered).
|
||||
if interimReplyEnabled && outcome.Result.BlockReplies > 0 && outcome.Result.Content == outcome.Result.LastBlockReply && len(outcome.Result.Media) == 0 {
|
||||
slog.Debug("inbound: dedup final message (matches last block reply)",
|
||||
"channel", channel, "run_id", rID)
|
||||
deps.MsgBus.PublishOutbound(bus.OutboundMessage{
|
||||
|
||||
Reference in new issue
Block a user