test: remove duplicate explicit-agent fallback path case

This commit is contained in:
Peter Steinberger
2026-02-16 08:52:55 +00:00
parent 896f9efcb7
commit 5d8f43ae8e

View File

@@ -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";