fix(editor): Open failed node in failed execution from sub-workflow node (#17076)

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Csaba Tuncsik
2025-07-10 09:30:27 +02:00
committed by GitHub
parent bd6d954253
commit 8fff83032c
11 changed files with 284 additions and 49 deletions

View File

@@ -1322,13 +1322,13 @@ function trackRunWorkflowToNode(node: INodeUi) {
void externalHooks.run('nodeView.onRunNode', telemetryPayload);
}
async function onOpenExecution(executionId: string) {
async function onOpenExecution(executionId: string, nodeId?: string) {
canvasStore.startLoading();
resetWorkspace();
await initializeData();
const data = await openExecution(executionId);
const data = await openExecution(executionId, nodeId);
if (!data) {
return;
}
@@ -1581,7 +1581,7 @@ async function onPostMessageReceived(messageEvent: MessageEvent) {
isProductionExecutionPreview.value =
json.executionMode !== 'manual' && json.executionMode !== 'evaluation';
await onOpenExecution(json.executionId);
await onOpenExecution(json.executionId, json.nodeId);
canOpenNDV.value = json.canOpenNDV ?? true;
hideNodeIssues.value = json.hideNodeIssues ?? false;
isExecutionPreview.value = true;