Fix background prompt message leakage

This commit is contained in:
jxxghp
2026-04-30 06:58:43 +08:00
parent 6532c60a3c
commit baebd0ed1a
7 changed files with 102 additions and 36 deletions

View File

@@ -435,6 +435,9 @@ class StreamingHandler:
if not current_text or current_text == self._sent_text:
# 没有新内容需要刷新
return
if not self._channel or not self._source:
logger.debug("流式输出缺少渠道上下文,仅保留 buffer不外发消息")
return
chain = _StreamChain()