From ce1fffa97e247e501f3f027403f079eca6c10af5 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Mon, 13 Apr 2026 21:09:44 +0100 Subject: [PATCH] perf(agents): narrow session helper imports --- src/agents/command/session.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/agents/command/session.ts b/src/agents/command/session.ts index 4ffa5cf4f1f..babb5558d5d 100644 --- a/src/agents/command/session.ts +++ b/src/agents/command/session.ts @@ -7,17 +7,18 @@ import { type VerboseLevel, } from "../../auto-reply/thinking.js"; import { - evaluateSessionFreshness, - loadSessionStore, resolveAgentIdFromSessionKey, - resolveChannelResetConfig, resolveExplicitAgentSessionKey, +} from "../../config/sessions/main-session.js"; +import { resolveStorePath } from "../../config/sessions/paths.js"; +import { + evaluateSessionFreshness, resolveSessionResetPolicy, - resolveSessionResetType, - resolveSessionKey, - resolveStorePath, - type SessionEntry, -} from "../../config/sessions.js"; +} from "../../config/sessions/reset-policy.js"; +import { resolveChannelResetConfig, resolveSessionResetType } from "../../config/sessions/reset.js"; +import { resolveSessionKey } from "../../config/sessions/session-key.js"; +import { loadSessionStore } from "../../config/sessions/store-load.js"; +import type { SessionEntry } from "../../config/sessions/types.js"; import type { OpenClawConfig } from "../../config/types.openclaw.js"; import { normalizeAgentId, normalizeMainKey } from "../../routing/session-key.js"; import { resolveSessionIdMatchSelection } from "../../sessions/session-id-resolution.js";