Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: fix local system tools (#11702)

Arvin Xu6548fc7572c9
diff --git a/src/store/chat/slices/aiChat/actions/streamingExecutor.ts b/src/store/chat/slices/aiChat/actions/streamingExecutor.ts
index ce74a2208d2..f77c41c4039 100644
--- a/src/store/chat/slices/aiChat/actions/streamingExecutor.ts
+++ b/src/store/chat/slices/aiChat/actions/streamingExecutor.ts
@@ -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: