diff options
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/ui/components/AboutBox.tsx | 13 | ||||
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.test.ts | 2 | ||||
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 2 |
3 files changed, 17 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/AboutBox.tsx b/packages/cli/src/ui/components/AboutBox.tsx index 9ffa1a90..472bf979 100644 --- a/packages/cli/src/ui/components/AboutBox.tsx +++ b/packages/cli/src/ui/components/AboutBox.tsx @@ -7,6 +7,7 @@ import React from 'react'; import { Box, Text } from 'ink'; import { Colors } from '../colors.js'; +import { GIT_COMMIT_INFO } from '../../generated/git-commit.js'; interface AboutBoxProps { cliVersion: string; @@ -44,6 +45,18 @@ export const AboutBox: React.FC<AboutBoxProps> = ({ <Text>{cliVersion}</Text> </Box> </Box> + {GIT_COMMIT_INFO && !['N/A'].includes(GIT_COMMIT_INFO) && ( + <Box flexDirection="row"> + <Box width="35%"> + <Text bold color={Colors.LightBlue}> + Git Commit + </Text> + </Box> + <Box> + <Text>{GIT_COMMIT_INFO}</Text> + </Box> + </Box> + )} <Box flexDirection="row"> <Box width="35%"> <Text bold color={Colors.LightBlue}> diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts index 4c630d10..1f049658 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts @@ -31,6 +31,7 @@ import { MessageType } from '../types.js'; import { type Config } from '@gemini-code/server'; import * as ShowMemoryCommandModule from './useShowMemoryCommand.js'; +import { GIT_COMMIT_INFO } from '../../generated/git-commit.js'; vi.mock('./useShowMemoryCommand.js', () => ({ SHOW_MEMORY_COMMAND_NAME: '/memory show', @@ -244,6 +245,7 @@ Add any other context about the problem here. ## Diagnostic Information * **CLI Version:** ${cliVersion} +* **Git Commit:** ${GIT_COMMIT_INFO} * **Operating System:** ${osVersion} * **Sandbox Environment:** ${sandboxEnvStr} * **Model Version:** ${modelVersion} diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 4573303e..d4daa5c9 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -11,6 +11,7 @@ import { UseHistoryManagerReturn } from './useHistoryManager.js'; import { Config } from '@gemini-code/server'; import { Message, MessageType, HistoryItemWithoutId } from '../types.js'; import { createShowMemoryAction } from './useShowMemoryCommand.js'; +import { GIT_COMMIT_INFO } from '../../generated/git-commit.js'; export interface SlashCommandActionReturn { shouldScheduleTool?: boolean; @@ -215,6 +216,7 @@ Add any other context about the problem here. ## Diagnostic Information * **CLI Version:** ${cliVersion} +* **Git Commit:** ${GIT_COMMIT_INFO} * **Operating System:** ${osVersion} * **Sandbox Environment:** ${sandboxEnv} * **Model Version:** ${modelVersion} |
