🐛 fix: fix local system tools (#11702)

fix local system
This commit is contained in:
Arvin Xu
2026-01-22 17:43:28 +08:00
committed by GitHub
parent c0c99a7ede
commit 6548fc7572

View File

@@ -176,8 +176,9 @@ export const streamingExecutor: StateCreator<
isSubTask,
}) => {
// Use provided agentId/topicId or fallback to global state
// Note: Use || instead of ?? to also fallback when paramAgentId is empty string
const { activeAgentId, activeTopicId } = get();
const agentId = paramAgentId ?? activeAgentId;
const agentId = paramAgentId || activeAgentId;
const topicId = paramTopicId !== undefined ? paramTopicId : activeTopicId;
// For group orchestration scenarios: