Skip to content

Commit 6548fc7

Browse files
authored
🐛 fix: fix local system tools (lobehub#11702)
fix local system
1 parent c0c99a7 commit 6548fc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/store/chat/slices/aiChat/actions/streamingExecutor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ export const streamingExecutor: StateCreator<
176176
isSubTask,
177177
}) => {
178178
// Use provided agentId/topicId or fallback to global state
179+
// Note: Use || instead of ?? to also fallback when paramAgentId is empty string
179180
const { activeAgentId, activeTopicId } = get();
180-
const agentId = paramAgentId ?? activeAgentId;
181+
const agentId = paramAgentId || activeAgentId;
181182
const topicId = paramTopicId !== undefined ? paramTopicId : activeTopicId;
182183

183184
// For group orchestration scenarios:

0 commit comments

Comments
 (0)