From d7605c62e9b7d45b8191d3b2d3b035ddf4ed700e Mon Sep 17 00:00:00 2001 From: Yichen Jiang Date: Sun, 9 Aug 2026 22:49:01 +0800 Subject: [PATCH] test(cli): give the layered-skills e2e sessions run-unique ids The suite composes over the ambient DSH home, so a fixed session id collides with the log a previous run persisted once the tool-execution path checks persisted identity. --- apps/cli/tests/web-agent-presets.e2e.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/cli/tests/web-agent-presets.e2e.ts b/apps/cli/tests/web-agent-presets.e2e.ts index f53c39511f..935ad0b3d1 100644 --- a/apps/cli/tests/web-agent-presets.e2e.ts +++ b/apps/cli/tests/web-agent-presets.e2e.ts @@ -1,3 +1,4 @@ +import { randomUUID } from 'node:crypto' import { mkdir, mkdtemp, readFile, writeFile } from 'node:fs/promises' import { tmpdir } from 'node:os' import { fileURLToPath } from 'node:url' @@ -181,7 +182,9 @@ describe('the shipped Web composition', () => { ].join('\n')) const handle = await ctx.agents.create({ - sessionId: SessionId('preset-skills-standard'), + // Unique per run: the composition persists into the ambient DSH home, + // and a fixed id would collide with a log an earlier run left there. + sessionId: SessionId(`preset-skills-standard-${randomUUID()}`), setup: agentCtx => ctx.agentPresets.mount(agentCtx, 'standard').then(() => undefined), }) try { @@ -212,7 +215,7 @@ describe('the shipped Web composition', () => { it('shows a core-web agent the global layer but no loader tool', async () => { const handle = await ctx.agents.create({ - sessionId: SessionId('preset-skills-core-web'), + sessionId: SessionId(`preset-skills-core-web-${randomUUID()}`), setup: agentCtx => ctx.agentPresets.mount(agentCtx, 'core-web').then(() => undefined), }) try {