We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0c99a7 commit 6548fc7Copy full SHA for 6548fc7
src/store/chat/slices/aiChat/actions/streamingExecutor.ts
@@ -176,8 +176,9 @@ export const streamingExecutor: StateCreator<
176
isSubTask,
177
}) => {
178
// Use provided agentId/topicId or fallback to global state
179
+ // Note: Use || instead of ?? to also fallback when paramAgentId is empty string
180
const { activeAgentId, activeTopicId } = get();
- const agentId = paramAgentId ?? activeAgentId;
181
+ const agentId = paramAgentId || activeAgentId;
182
const topicId = paramTopicId !== undefined ? paramTopicId : activeTopicId;
183
184
// For group orchestration scenarios:
0 commit comments