test: remove redundant transcript-path wrapper case

This commit is contained in:
Peter Steinberger
2026-02-16 08:38:18 +00:00
parent 4f05d045b9
commit 0d2e13fb73

View File

@@ -16,7 +16,6 @@ import { deriveSessionMetaPatch } from "./metadata.js";
import {
resolveSessionFilePath,
resolveSessionFilePathOptions,
resolveSessionTranscriptPath,
resolveSessionTranscriptPathInDir,
resolveStorePath,
validateSessionId,
@@ -157,11 +156,6 @@ describe("session path safety", () => {
expect(resolved).toBe(path.resolve(opsSessionFile));
});
it("uses agent sessions dir fallback for transcript path", () => {
const resolved = resolveSessionTranscriptPath("sess-1", "main");
expect(resolved.endsWith(path.join("agents", "main", "sessions", "sess-1.jsonl"))).toBe(true);
});
it("keeps custom per-agent store roots when agentId is provided", () => {
const opts = resolveSessionFilePathOptions({
storePath: "/srv/custom/agents/ops/sessions/sessions.json",