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 <noreply@anthropic.com>
This commit is contained in:
parent
6d45f36310
commit
ea581b76c6
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue