From 38f02c7a32f3e58efffde8aef71c7a5ee3c467e7 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Feb 2026 11:35:41 +0100 Subject: [PATCH] fix(session): resolve agent session path with configured sessions dir Co-authored-by: David Rudduck --- CHANGELOG.md | 1 + src/commands/agent.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89021c87fae..97ad0412d9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Docs: https://docs.openclaw.ai ### Fixes +- CLI/Sessions: pass the configured sessions directory when resolving transcript paths in `agentCommand`, so custom `session.store` locations resume sessions reliably. Thanks @davidrudduck. - Gateway/Chat UI: strip inline reply/audio directive tags from non-streaming final webchat broadcasts (including `chat.inject`) while preserving empty-string message content when tags are the entire reply. (#23298) Thanks @SidQin-cyber. - Gateway/Restart: fix restart-loop edge cases by keeping `openclaw.mjs -> dist/entry.js` bootstrap detection explicit, reacquiring the gateway lock for in-process restart fallback paths, and tightening restart-loop regression coverage. (#23416) Thanks @jeffwnli. - Signal/Monitor: treat user-initiated abort shutdowns as clean exits when auto-started `signal-cli` is terminated, while still surfacing unexpected daemon exits as startup/runtime failures. (#23379) Thanks @frankekn. diff --git a/src/commands/agent.ts b/src/commands/agent.ts index a4ceb01c4bf..576124bd81c 100644 --- a/src/commands/agent.ts +++ b/src/commands/agent.ts @@ -512,6 +512,7 @@ export async function agentCommand( } let sessionFile = resolveSessionFilePath(sessionId, sessionEntry, { agentId: sessionAgentId, + sessionsDir: path.dirname(storePath), }); if (sessionStore && sessionKey) { const threadIdFromSessionKey = parseSessionThreadInfo(sessionKey).threadId;