fix(agent): 在passthrough模式下添加direct参数以绕过超时检查

当启用passthrough模式时,通过direct参数跳过60秒超时检查,确保消息直接发送而不受限制
This commit is contained in:
Yuyao Huang (Sam)
2026-03-30 01:19:40 +08:00
parent 1b2bb8cdc2
commit f4249e5b0d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ class OrchestrationAgent:
# Passthrough mode: if enabled and active session, bypass LLM
if self._passthrough[user_id] and active_conv:
try:
reply = await manager.send(active_conv, text, user_id=user_id)
reply = await manager.send(active_conv, text, user_id=user_id, direct=True)
logger.info("<<< [passthrough] reply: %r", reply[:120])
return reply
except KeyError: