mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-20 15:33:54 +00:00
The TUI banner footer used the raw `info.mcp_servers.length`, so a configured-but-disabled server (e.g. `linear`) was counted alongside connected ones. With a disabled `linear` and a connected `nous-support`, the TUI reported "2 MCP" while the classic CLI correctly reported "1 MCP" (`mcp_connected = sum(1 for s in mcp_status if s["connected"])` in hermes_cli/banner.py). The collapse toggle even labels the count "connected", which was wrong for the same reason. Count connected servers for both the toggle and the footer segment, and drop the `· N MCP` segment entirely when none are connected (matching the classic banner, which only appends it when the count is > 0). The expandable MCP section still lists every configured server, including disabled ones. Invariant test renders SessionPanel and asserts the headline equals the connected count, never the configured total. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| app | ||
| components | ||
| config | ||
| content | ||
| domain | ||
| hooks | ||
| lib | ||
| protocol | ||
| types | ||
| app.tsx | ||
| banner.ts | ||
| entry.tsx | ||
| gatewayClient.ts | ||
| gatewayTypes.ts | ||
| theme.ts | ||
| types.ts | ||