From 7c7a1b1a1f060b6ccf741e34b509cf045e1ad30d Mon Sep 17 00:00:00 2001 From: yu <191972707@qq.com> Date: Wed, 28 Oct 2026 16:29:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E5=A4=87=E4=BB=BD=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=90=8C=E5=90=8D=E9=87=8D=E5=A4=8D=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/flows.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/flows.ts b/src/main/flows.ts index 09790bf..3202929 100644 --- a/src/main/flows.ts +++ b/src/main/flows.ts @@ -175,6 +175,7 @@ export function listFlows(): FlowSummary[] { const runs = latestRuns(); for (const entry of fs.readdirSync(base)) { if (!entry.endsWith(".json")) continue; + if (/-pre-|\\.bak/i.test(entry)) continue; try { const flow = JSON.parse(fs.readFileSync(path.join(base, entry), "utf8")) as FlowDefinition; if (!flow?.id || !Array.isArray(flow.nodes)) continue; @@ -231,3 +232,4 @@ export function deleteFlow(id: string): void { const target = fileOf(id); if (fs.existsSync(target)) fs.unlinkSync(target); } +