We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0cb95b commit 0fa571eCopy full SHA for 0fa571e
apps/sim/lib/workflows/executor/execution-core.ts
@@ -325,7 +325,10 @@ export async function executeWorkflowCore(
325
326
const mergedStates = mergeSubblockStateWithValues(blocks)
327
328
- const personalEnvUserId = metadata.sessionUserId || metadata.userId
+ const personalEnvUserId =
329
+ metadata.isClientSession && metadata.sessionUserId
330
+ ? metadata.sessionUserId
331
+ : metadata.workflowUserId || metadata.userId
332
333
if (!personalEnvUserId) {
334
throw new Error('Missing execution actor for environment resolution')
0 commit comments