Always show the tool internal name in /tools (#12964)

This commit is contained in:
Tommaso Sciortino
2025-11-12 12:45:18 -08:00
committed by GitHub
parent 4d85ce40be
commit 0075b4f118
2 changed files with 4 additions and 5 deletions

View File

@@ -32,8 +32,7 @@ export const ToolsList: React.FC<ToolsListProps> = ({
<Text color={theme.text.primary}>{' '}- </Text>
<Box flexDirection="column">
<Text bold color={theme.text.accent}>
{tool.displayName}
{showDescriptions ? ` (${tool.name})` : ''}
{tool.displayName} ({tool.name})
</Text>
{showDescriptions && tool.description && (
<MarkdownDisplay

View File

@@ -25,8 +25,8 @@ exports[`<ToolsList /> > renders correctly with no tools 1`] = `
exports[`<ToolsList /> > renders correctly without descriptions 1`] = `
"Available Gemini CLI tools:
- Test Tool One
- Test Tool Two
- Test Tool Three
- Test Tool One (test-tool-one)
- Test Tool Two (test-tool-two)
- Test Tool Three (test-tool-three)
"
`;