summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.ts
diff options
context:
space:
mode:
authorAli Al Jufairi <[email protected]>2025-08-10 09:04:52 +0900
committerGitHub <[email protected]>2025-08-10 00:04:52 +0000
commit8a9a9275440e3681e9be73d741a5aba429ae501f (patch)
treecc2c17101c57d0c34049a6ee390d0f1b9bf38018 /packages/cli/src/ui/hooks/slashCommandProcessor.ts
parentc632ec8b03ac5b459da9ccb041b9fca19252f69b (diff)
feat(ui): add /settings command and UI panel (#4738)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
index ca08abb1..b4ce0d4d 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
@@ -50,6 +50,7 @@ export const useSlashCommandProcessor = (
toggleCorgiMode: () => void,
setQuittingMessages: (message: HistoryItem[]) => void,
openPrivacyNotice: () => void,
+ openSettingsDialog: () => void,
toggleVimEnabled: () => Promise<boolean>,
setIsProcessing: (isProcessing: boolean) => void,
setGeminiMdFileCount: (count: number) => void,
@@ -359,6 +360,11 @@ export const useSlashCommandProcessor = (
case 'privacy':
openPrivacyNotice();
return { type: 'handled' };
+ case 'settings':
+ openSettingsDialog();
+ return { type: 'handled' };
+ case 'help':
+ return { type: 'handled' };
default: {
const unhandled: never = result.dialog;
throw new Error(
@@ -512,6 +518,7 @@ export const useSlashCommandProcessor = (
openPrivacyNotice,
openEditorDialog,
setQuittingMessages,
+ openSettingsDialog,
setShellConfirmationRequest,
setSessionShellAllowlist,
setIsProcessing,