mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user