From 3d7a86c5848d1e958037a13cb72dbfe47d68c900 Mon Sep 17 00:00:00 2001 From: testikun <320479488+testikun@users.noreply.github.com> Date: Sat, 5 Sep 2026 13:39:23 +0800 Subject: [PATCH] fix(workflows): use portable artifact identities --- extensions/workflows/artifacts.test.ts | 1 + extensions/workflows/artifacts.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/workflows/artifacts.test.ts b/extensions/workflows/artifacts.test.ts index da7a6999..d72066b1 100644 --- a/extensions/workflows/artifacts.test.ts +++ b/extensions/workflows/artifacts.test.ts @@ -128,6 +128,7 @@ test("agent result artifacts are complete or fail without leaving a file", () => output: "complete", structured: { verdict: "accepted", emoji: "你好🙂" }, }); + assert.equal(artifact, "agent-results/agent-0001.json"); assert.deepEqual( JSON.parse(readFileSync(join(directory, artifact), "utf8")), { diff --git a/extensions/workflows/artifacts.ts b/extensions/workflows/artifacts.ts index 5f14e1d5..8fb09281 100644 --- a/extensions/workflows/artifacts.ts +++ b/extensions/workflows/artifacts.ts @@ -109,7 +109,7 @@ export function persistWorkflowAgentResult( index: number, result: { output: string; structured?: unknown }, ) { - const artifact = path.join( + const artifact = path.posix.join( "agent-results", `agent-${String(index).padStart(4, "0")}.json`, );