mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-12 01:17:48 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user