mirror of https://github.com/openclaw/openclaw.git
test: remove redundant transcript-path wrapper case
This commit is contained in:
parent
4f05d045b9
commit
0d2e13fb73
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue