diff --git a/src/config/sessions/sessions.test.ts b/src/config/sessions/sessions.test.ts index ae963eb6441..48fd861d5f3 100644 --- a/src/config/sessions/sessions.test.ts +++ b/src/config/sessions/sessions.test.ts @@ -162,20 +162,6 @@ describe("session path safety", () => { expect(resolved).toBe(path.resolve(opsSessionFile)); }); - it("uses absolute path fallback when sessionFile includes a different agent dir", () => { - 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 }, - ); - - 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";