diff options
| author | Seth Troisi <[email protected]> | 2025-05-05 20:48:34 +0000 |
|---|---|---|
| committer | Seth Troisi <[email protected]> | 2025-05-05 20:54:12 +0000 |
| commit | bb52149a06012ddb5e5535d60decf40aa11ac344 (patch) | |
| tree | 99be8645e472f8a3fcca6e82f7dce50ac857d0fa /packages/cli/src/ui/hooks/slashCommandProcessor.ts | |
| parent | 415b757d4a7e654ebf6eae50b67498d0ae49f7f2 (diff) | |
Move Intro to Help and only display after help command.
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 5e10a245..33b59b68 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -29,6 +29,7 @@ const addHistoryItem = ( export const useSlashCommandProcessor = ( setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>, refreshStatic: () => void, + setShowHelp: React.Dispatch<React.SetStateAction<boolean>>, setDebugMessage: React.Dispatch<React.SetStateAction<string>>, getNextMessageId: (baseTimestamp: number) => number, openThemeDialog: () => void, @@ -38,15 +39,8 @@ export const useSlashCommandProcessor = ( name: 'help', description: 'for help on gemini-code', action: (_value: PartListUnion) => { - const helpText = - 'I am an interactive CLI tool assistant designed to ' + - 'help with software engineering tasks. I can use tools to read ' + - 'and write files, search code, execute bash commands, and more ' + - 'to assist with development workflows. I will explain commands ' + - 'and ask for permission before running them and will not ' + - 'commit changes unless explicitly instructed.'; - const timestamp = getNextMessageId(Date.now()); - addHistoryItem(setHistory, { type: 'info', text: helpText }, timestamp); + setDebugMessage('Opening help.'); + setShowHelp(true); }, }, { |
