diff options
| -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> |
