From 99237c2dde1f357e7161d24898295ae5e63a13c3 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Mon, 13 Apr 2026 20:45:04 +0100 Subject: [PATCH] perf(commands): narrow session test imports --- src/commands/agent-runtime-config.test-support.ts | 2 +- src/commands/agent.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/agent-runtime-config.test-support.ts b/src/commands/agent-runtime-config.test-support.ts index 27f84a42f89..7eba37992b1 100644 --- a/src/commands/agent-runtime-config.test-support.ts +++ b/src/commands/agent-runtime-config.test-support.ts @@ -5,7 +5,7 @@ import * as modelSelectionModule from "../agents/model-selection.js"; import { runEmbeddedPiAgent } from "../agents/pi-embedded.js"; import type { OpenClawConfig } from "../config/config.js"; import * as configModule from "../config/config.js"; -import { clearSessionStoreCacheForTest } from "../config/sessions.js"; +import { clearSessionStoreCacheForTest } from "../config/sessions/store.js"; import { resetAgentEventsForTest, resetAgentRunContextForTest } from "../infra/agent-events.js"; import { resetPluginRuntimeStateForTest } from "../plugins/runtime.js"; import type { RuntimeEnv } from "../runtime.js"; diff --git a/src/commands/agent.test.ts b/src/commands/agent.test.ts index 13617c65b77..84b125d1441 100644 --- a/src/commands/agent.test.ts +++ b/src/commands/agent.test.ts @@ -14,8 +14,8 @@ import * as modelSelectionModule from "../agents/model-selection.js"; import { runEmbeddedPiAgent } from "../agents/pi-embedded.js"; import type { OpenClawConfig } from "../config/config.js"; import * as configModule from "../config/config.js"; -import { clearSessionStoreCacheForTest } from "../config/sessions.js"; import * as sessionPathsModule from "../config/sessions/paths.js"; +import { clearSessionStoreCacheForTest } from "../config/sessions/store.js"; import { emitAgentEvent, onAgentEvent,