From 5d8f43ae8e85186a7b6a00f17f1827de79bd3c9a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 08:52:55 +0000 Subject: [PATCH] test: remove duplicate explicit-agent fallback path case --- src/config/sessions/sessions.test.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/config/sessions/sessions.test.ts b/src/config/sessions/sessions.test.ts index 5fda18384c5..4786f106524 100644 --- a/src/config/sessions/sessions.test.ts +++ b/src/config/sessions/sessions.test.ts @@ -98,19 +98,6 @@ describe("session path safety", () => { ).toThrow(/within sessions directory/); }); - 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"; - - const resolved = resolveSessionFilePath( - "sess-1", - { sessionFile: opsSessionFile }, - { sessionsDir: mainSessionsDir, agentId: "ops" }, - ); - - expect(resolved).toBe(path.resolve(opsSessionFile)); - }); - it("uses extracted agent fallback for custom per-agent store roots", () => { const mainSessionsDir = "/srv/custom/agents/main/sessions"; const opsSessionFile = "/srv/custom/agents/ops/sessions/abc-123.jsonl";