We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0b3872 commit 885e1e0Copy full SHA for 885e1e0
1 file changed
astrbot/core/subagent_manager.py
@@ -789,7 +789,7 @@ async def create_subagent(
789
handoff_tool.provider_id = config.provider_id
790
session.handoff_tools[config.name] = handoff_tool
791
# 初始化subagent的历史上下文(仅当历史功能启用时)
792
- if cls._history_enabled and config.name not in session.subagent_histories:
+ if cls._history_enabled:
793
session.subagent_histories[config.name] = []
794
# 初始化subagent状态
795
cls.set_subagent_status(session_id, config.name, "IDLE")
0 commit comments