From 49d383ba7cc743faf188c5a7d70fd983f00454b5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 08:23:09 +0000 Subject: [PATCH] test: remove redundant default-root explicit fallback case --- src/config/sessions/sessions.test.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/config/sessions/sessions.test.ts b/src/config/sessions/sessions.test.ts index 48fd861d5f3..d30903e25dd 100644 --- a/src/config/sessions/sessions.test.ts +++ b/src/config/sessions/sessions.test.ts @@ -148,20 +148,6 @@ describe("session path safety", () => { ).toThrow(/within sessions directory/); }); - it("uses explicit agentId fallback for absolute sessionFile outside sessionsDir", () => { - const mainSessionsDir = path.dirname(resolveStorePath(undefined, { agentId: "main" })); - const opsSessionsDir = path.dirname(resolveStorePath(undefined, { agentId: "ops" })); - const opsSessionFile = path.join(opsSessionsDir, "abc-123.jsonl"); - - const resolved = resolveSessionFilePath( - "sess-1", - { sessionFile: opsSessionFile }, - { sessionsDir: mainSessionsDir, agentId: "ops" }, - ); - - expect(resolved).toBe(path.resolve(opsSessionFile)); - }); - it("uses sibling fallback for custom per-agent store roots", () => { const mainSessionsDir = "/srv/custom/agents/main/sessions"; const opsSessionFile = "/srv/custom/agents/ops/sessions/abc-123.jsonl";