diff --git a/src/commands/agent.ts b/src/commands/agent.ts index b7d2ea448..77fb4d942 100644 --- a/src/commands/agent.ts +++ b/src/commands/agent.ts @@ -416,7 +416,9 @@ export async function agentCommand( catalog: catalogForThinking, }); } - const sessionFile = resolveSessionFilePath(sessionId, sessionEntry); + const sessionFile = resolveSessionFilePath(sessionId, sessionEntry, { + agentId: sessionAgentId, + }); const startedAt = Date.now(); let lifecycleEnded = false;