mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
fix: keep MCP servers collapsed on auto-test
Only auto-expand servers when user manually clicks Test button. Auto-test on mount now keeps servers collapsed to avoid clutter when there are many MCP servers configured. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -130,9 +130,9 @@ export function MCPServersSection() {
|
||||
connectionTime: result.connectionTime,
|
||||
},
|
||||
}));
|
||||
// Auto-expand to show tools
|
||||
setExpandedServers((prev) => new Set([...prev, server.id]));
|
||||
// Only auto-expand on manual test, not on auto-test (silent)
|
||||
if (!silent) {
|
||||
setExpandedServers((prev) => new Set([...prev, server.id]));
|
||||
toast.success(
|
||||
`Connected to ${server.name} (${result.tools?.length || 0} tools, ${result.connectionTime}ms)`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user