Skip to content

Commit 8ce5fbb

Browse files
authored
Merge pull request #215 from minorcell/hide-mcp-none
Hide mcp line when no MCP servers configured
2 parents 84dde05 + 9ea6cea commit 8ce5fbb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/tui/src/features/timeline/ChatWidget.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ export const ChatWidget = memo(function ChatWidget({
102102
{item.data.version}
103103
</Text>
104104
<Text color="gray">cwd: {item.data.cwd}</Text>
105-
<Text color="gray">
106-
mcp: {item.data.mcpNames.join(', ') || 'none'}
107-
</Text>
105+
{item.data.mcpNames.length > 0 ? (
106+
<Text color="gray">
107+
mcp: {item.data.mcpNames.join(', ')}
108+
</Text>
109+
) : null}
108110
</Box>
109111
)
110112
}

0 commit comments

Comments
 (0)