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.
This commit is contained in:
Haileyesus
2026-03-10 21:49:27 +03:00
parent 3a80be9492
commit 0073c5b550

View File

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