





















@@ -1,3 +1,4 @@
1+import path from "node:path";
12import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";
23import type { ResolvedAgentRoute } from "openclaw/plugin-sdk/routing";
34import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
@@ -1094,14 +1095,14 @@ describe("registerTelegramNativeCommands — session metadata", () => {
10941095sessionKey: "agent:main:telegram:group:-1001234567890:topic:42",
10951096storePath: "/tmp/openclaw-sessions/sessions.json",
10961097sessionsDir: "/tmp/openclaw-sessions",
1097-fallbackSessionFile: "/tmp/openclaw-sessions/sess-topic-topic-42.jsonl",
1098+fallbackSessionFile: path.resolve("/tmp/openclaw-sessions", "sess-topic-topic-42.jsonl"),
10981099}),
10991100);
11001101expect(pluginRuntimeMocks.executePluginCommand).toHaveBeenCalledWith(
11011102expect.objectContaining({
11021103sessionKey: "agent:main:telegram:group:-1001234567890:topic:42",
11031104sessionId: "sess-topic",
1104-sessionFile: "/tmp/openclaw-sessions/sess-topic-topic-42.jsonl",
1105+sessionFile: path.resolve("/tmp/openclaw-sessions", "sess-topic-topic-42.jsonl"),
11051106messageThreadId: 42,
11061107}),
11071108);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。