mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 21:23:07 +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,
|
connectionTime: result.connectionTime,
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
// Auto-expand to show tools
|
// Only auto-expand on manual test, not on auto-test (silent)
|
||||||
setExpandedServers((prev) => new Set([...prev, server.id]));
|
|
||||||
if (!silent) {
|
if (!silent) {
|
||||||
|
setExpandedServers((prev) => new Set([...prev, server.id]));
|
||||||
toast.success(
|
toast.success(
|
||||||
`Connected to ${server.name} (${result.tools?.length || 0} tools, ${result.connectionTime}ms)`
|
`Connected to ${server.name} (${result.tools?.length || 0} tools, ${result.connectionTime}ms)`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user