fix(webhook): strip extraneous fields from trigger processing (#2686)

This commit is contained in:
Waleed
2026-01-05 16:19:49 -08:00
committed by GitHub
parent 0977ed228f
commit cc3f565d5e
4 changed files with 59 additions and 127 deletions

View File

@@ -331,6 +331,22 @@ export class BlockExecutor {
}
return filtered
}
const isTrigger =
block.metadata?.category === 'triggers' ||
block.config?.params?.triggerMode === true ||
block.metadata?.id === BlockType.STARTER
if (isTrigger) {
const filtered: NormalizedBlockOutput = {}
const internalKeys = ['webhook', 'workflowId', 'input']
for (const [key, value] of Object.entries(output)) {
if (internalKeys.includes(key)) continue
filtered[key] = value
}
return filtered
}
return output
}