From e584241141b74ab503a527fad158d60eb06c38fe Mon Sep 17 00:00:00 2001 From: Abhi <43648792+abhipatel12@users.noreply.github.com> Date: Tue, 15 Jul 2025 01:45:06 -0400 Subject: Migrate /privacy to new architecture (#4202) --- packages/cli/src/ui/hooks/slashCommandProcessor.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts') diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 3a071fab..6465a49d 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -247,11 +247,6 @@ export const useSlashCommandProcessor = ( description: 'set external editor preference', action: (_mainCommand, _subCommand, _args) => openEditorDialog(), }, - { - name: 'privacy', - description: 'display the privacy notice', - action: (_mainCommand, _subCommand, _args) => openPrivacyNotice(), - }, { name: 'stats', altName: 'usage', @@ -1023,7 +1018,6 @@ export const useSlashCommandProcessor = ( }, [ addMessage, openEditorDialog, - openPrivacyNotice, toggleCorgiMode, savedChatTags, config, @@ -1125,6 +1119,9 @@ export const useSlashCommandProcessor = ( case 'theme': openThemeDialog(); return { type: 'handled' }; + case 'privacy': + openPrivacyNotice(); + return { type: 'handled' }; default: { const unhandled: never = result.dialog; throw new Error( @@ -1208,6 +1205,7 @@ export const useSlashCommandProcessor = ( commandContext, addMessage, openThemeDialog, + openPrivacyNotice, ], ); -- cgit v1.2.3