From 967c720b7c0616a5a549b87c27032aa3b9430946 Mon Sep 17 00:00:00 2001 From: jean-baptiste Date: Sat, 30 May 2026 03:16:00 +0200 Subject: [PATCH] fix(app): showSession() on openTerminal error path --- public/app.js | 2 ++ 1 file changed, 2 insertions(+) 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);