mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:01:24 +00:00
test: remove redundant transcript-path wrapper case
This commit is contained in:
@@ -16,7 +16,6 @@ import { deriveSessionMetaPatch } from "./metadata.js";
|
|||||||
import {
|
import {
|
||||||
resolveSessionFilePath,
|
resolveSessionFilePath,
|
||||||
resolveSessionFilePathOptions,
|
resolveSessionFilePathOptions,
|
||||||
resolveSessionTranscriptPath,
|
|
||||||
resolveSessionTranscriptPathInDir,
|
resolveSessionTranscriptPathInDir,
|
||||||
resolveStorePath,
|
resolveStorePath,
|
||||||
validateSessionId,
|
validateSessionId,
|
||||||
@@ -157,11 +156,6 @@ describe("session path safety", () => {
|
|||||||
expect(resolved).toBe(path.resolve(opsSessionFile));
|
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", () => {
|
it("keeps custom per-agent store roots when agentId is provided", () => {
|
||||||
const opts = resolveSessionFilePathOptions({
|
const opts = resolveSessionFilePathOptions({
|
||||||
storePath: "/srv/custom/agents/ops/sessions/sessions.json",
|
storePath: "/srv/custom/agents/ops/sessions/sessions.json",
|
||||||
|
|||||||
Reference in New Issue
Block a user