From 117a9d859d0f69ea818bba3eafd3ddc93f097b62 Mon Sep 17 00:00:00 2001 From: ezl-keygraph Date: Mon, 16 Mar 2026 17:21:23 +0530 Subject: [PATCH] fix: show resumed workflow ID in splash screen URL When resuming a workflow, the Temporal Web UI link pointed to the old (terminated) workflow ID. Now extracts "New Workflow ID" from the resume header in workflow.log, falling back to the original ID for fresh scans. --- apps/cli/src/commands/start.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/cli/src/commands/start.ts b/apps/cli/src/commands/start.ts index c049522..b4640d5 100644 --- a/apps/cli/src/commands/start.ts +++ b/apps/cli/src/commands/start.ts @@ -131,11 +131,10 @@ export function start(args: StartArgs): void { clearInterval(pollInterval); started = true; - // Extract workflow ID - const match = /^Workflow ID: (.+)$/m.exec(content); - if (match?.[1]) { - workflowId = match[1]; - } + // Extract workflow ID (use latest resumed workflow ID, or original for fresh scans) + const resumeMatches = [...content.matchAll(/^New Workflow ID:\s+(.+)$/gm)]; + const originalMatch = /^Workflow ID: (.+)$/m.exec(content); + workflowId = resumeMatches.at(-1)?.[1] ?? originalMatch?.[1] ?? ''; // Clear waiting line and show info process.stdout.write('\r\x1b[K');