stop responding with "..." (#1491)

This commit is contained in:
bilogic authored and GitHub committed 2026-08-02 07:29:30 +07:00
1 parent 89e4560f20
commit 6e61bd1531
9 files changed
+423 -17

No files matched your search

+3 -6
View File
@@ -67,16 +67,13 @@ func (l *Loop) finalizeRun(
}
// 7. Fallback only when there is no other deliverable output. Media-only
// runs must remain media-only instead of gaining a visible "..." caption.
// runs must remain media-only instead of gaining a visible caption. Use a
// meaningful localized message instead of the old meaningless "...".
hasDeliverableOutput := len(rs.mediaResults) > 0 ||
len(req.ForwardMedia) > 0 ||
req.ContentSuffix != ""
if rs.finalContent == "" && !hasDeliverableOutput {
if len(rs.asyncToolCalls) > 0 {
rs.finalContent = "..."
} else {
rs.finalContent = "..."
}
rs.finalContent = i18n.T(store.LocaleFromContext(ctx), i18n.MsgEmptyReplyFallback)
}
// Append content suffix (e.g. image markdown for WS) before saving to session.