From 5d8487eea12b1e49074634b40fe27e398d00c113 Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Sat, 25 Oct 2025 17:52:24 +0000 Subject: [PATCH] Fix codex resume to use session id instead of --last --- lib/sandbox/agents/codex.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/sandbox/agents/codex.ts b/lib/sandbox/agents/codex.ts index 086ca7ba..8e3d93e6 100644 --- a/lib/sandbox/agents/codex.ts +++ b/lib/sandbox/agents/codex.ts @@ -283,9 +283,8 @@ url = "${server.baseUrl}" if (isResumed) { // Use resume command instead of exec - // Note: codex resume doesn't take session ID as an argument, it uses a picker or --last - // For now, we'll use --last to continue the most recent session - codexCommand = 'codex resume --last' + // Note: codex resume takes the prompt directly without --last flag when continuing + codexCommand = 'codex resume' if (logger) { await logger.info('Resuming previous Codex conversation') }