fix(session): resolve agent session path with configured sessions dir

Co-authored-by: David Rudduck <david@rudduck.org.au>
This commit is contained in:
Peter Steinberger
2026-02-22 11:35:41 +01:00
parent c283f87ab0
commit 38f02c7a32
2 changed files with 2 additions and 0 deletions

View File

@@ -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;