From 0073c5b5501df78b3795b9974ab70f3d8daf48f4 Mon Sep 17 00:00:00 2001 From: Haileyesus Date: Tue, 10 Mar 2026 21:49:27 +0300 Subject: [PATCH] fix(shell): remove fallback command for codex and claude session resumes The `|| claude` and `|| codex` fallback commands were causing errors as they are not valid commands. --- server/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/index.js b/server/index.js index 521197c..0887b2a 100755 --- a/server/index.js +++ b/server/index.js @@ -1731,7 +1731,7 @@ function handleShellConnection(ws) { } } else if (provider === 'codex') { if (hasSession && sessionId) { - shellCommand = `codex resume "${sessionId}" || codex`; + shellCommand = `codex resume "${sessionId}"`; } else { shellCommand = 'codex'; } @@ -1765,7 +1765,7 @@ function handleShellConnection(ws) { // Claude (default provider) const command = initialCommand || 'claude'; if (hasSession && sessionId) { - shellCommand = `claude --resume "${sessionId}" || claude`; + shellCommand = `claude --resume "${sessionId}"`; } else { shellCommand = command; }