From ea581b76c6da320835d5700e4d461e791b64b7d8 Mon Sep 17 00:00:00 2001 From: Amrit Subramanian Date: Tue, 7 Oct 2025 13:28:15 -0400 Subject: [PATCH] Hide MCP section when deleting last active session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a session is deleted and there are no remaining active sessions, hide the MCP servers section to match the behavior of closeSession. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- renderer.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/renderer.ts b/renderer.ts index 53518d8..8aa1a50 100644 --- a/renderer.ts +++ b/renderer.ts @@ -638,6 +638,11 @@ function deleteSession(sessionId: string) { switchToSession(remainingSessions[0].id); } else { activeSessionId = null; + // Hide MCP section when no sessions are active + const mcpSection = document.getElementById("mcp-section"); + if (mcpSection) { + mcpSection.style.display = "none"; + } } } }