diff --git a/public/app.js b/public/app.js index ac5dc703..47020991 100644 --- a/public/app.js +++ b/public/app.js @@ -794,6 +794,7 @@ async function launchNewSession(project, sessionOptions) { if (!result.ok) { entry.terminal.write(`\r\nError: ${result.error}\r\n`); entry.closed = true; + showSession(sessionId); return; } if (typeof setSessionMcpActive === 'function') setSessionMcpActive(sessionId, !!result.mcpActive); @@ -860,6 +861,7 @@ async function openSession(session, customOptions) { if (!result.ok) { entry.terminal.write(`\r\nError: ${result.error}\r\n`); entry.closed = true; + showSession(sessionId); return; } if (typeof setSessionMcpActive === 'function') setSessionMcpActive(sessionId, !!result.mcpActive);