Skip to content

Commit 885e1e0

Browse files
committed
bug fix
1 parent f0b3872 commit 885e1e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astrbot/core/subagent_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ async def create_subagent(
789789
handoff_tool.provider_id = config.provider_id
790790
session.handoff_tools[config.name] = handoff_tool
791791
# 初始化subagent的历史上下文(仅当历史功能启用时)
792-
if cls._history_enabled and config.name not in session.subagent_histories:
792+
if cls._history_enabled:
793793
session.subagent_histories[config.name] = []
794794
# 初始化subagent状态
795795
cls.set_subagent_status(session_id, config.name, "IDLE")

0 commit comments

Comments
 (0)