Skip to content

Commit ea581b7

Browse files
built-by-asclaude
andcommitted
Hide MCP section when deleting last active session
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 <[email protected]>
1 parent 6d45f36 commit ea581b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

renderer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,11 @@ function deleteSession(sessionId: string) {
638638
switchToSession(remainingSessions[0].id);
639639
} else {
640640
activeSessionId = null;
641+
// Hide MCP section when no sessions are active
642+
const mcpSection = document.getElementById("mcp-section");
643+
if (mcpSection) {
644+
mcpSection.style.display = "none";
645+
}
641646
}
642647
}
643648
}

0 commit comments

Comments
 (0)