diff options
| author | arc-source-coder <[email protected]> | 2025-12-10 16:27:59 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-10 10:27:59 -0600 |
| commit | 80d1c628181ecf0254d1b60d2930b0ac007eb333 (patch) | |
| tree | 67270797fe029446090443f6e42db66daf83eb7f | |
| parent | 83aa42f5100546fa4c422c92398ad73a0b396860 (diff) | |
| download | opencode-80d1c628181ecf0254d1b60d2930b0ac007eb333.tar.gz opencode-80d1c628181ecf0254d1b60d2930b0ac007eb333.zip | |
tui: only show active MCP server count (#5327)
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/footer.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/footer.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/footer.tsx index e889373e6..69082c870 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/footer.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/footer.tsx @@ -10,7 +10,7 @@ export function Footer() { const { theme } = useTheme() const sync = useSync() const route = useRoute() - const mcp = createMemo(() => Object.keys(sync.data.mcp)) + const mcp = createMemo(() => Object.values(sync.data.mcp).filter((x) => x.status === "connected").length) const mcpError = createMemo(() => Object.values(sync.data.mcp).some((x) => x.status === "failed")) const lsp = createMemo(() => Object.keys(sync.data.lsp)) const permissions = createMemo(() => { @@ -66,7 +66,7 @@ export function Footer() { <text fg={theme.text}> <span style={{ fg: theme.success }}>•</span> {lsp().length} LSP </text> - <Show when={mcp().length}> + <Show when={mcp()}> <text fg={theme.text}> <Switch> <Match when={mcpError()}> @@ -76,7 +76,7 @@ export function Footer() { <span style={{ fg: theme.success }}>⊙ </span> </Match> </Switch> - {mcp().length} MCP + {mcp()} MCP </text> </Show> <text fg={theme.textMuted}>/status</text> |
