Merge pull request #3364 from xinnan-tech/fix-memory-title

fix: 记忆模式为nomem时错误生成标题
This commit is contained in:
wengzh authored and GitHub committed 2026-09-11 17:34:43 +08:00
commit daccfeb9dd
1 file changed
+4 -1
+4 -1
View File
@@ -279,7 +279,10 @@ class ConnectionHandler:
"""保存记忆并关闭连接"""
try:
# 守护线程1:独立生成标题(不依赖记忆模型)
if self.session_id:
# 仅在服务端开启 chat_history 上报时才触发标题生成,
# 否则服务端无法按 session_id 反查到对应的 agent/chat_history,
# 会抛出"智能体未找到"错误
if self.session_id and self.chat_history_conf != 0:
def generate_title_task():
try:
loop = asyncio.new_event_loop()