summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.ts
diff options
context:
space:
mode:
authorAbhi <[email protected]>2025-07-15 01:45:06 -0400
committerGitHub <[email protected]>2025-07-15 05:45:06 +0000
commite584241141b74ab503a527fad158d60eb06c38fe (patch)
tree2ccad5691af39e3f3782a976d6f498f2069bafb0 /packages/cli/src/ui/hooks/slashCommandProcessor.ts
parent886faa2990b191a0dbd01dc58a88e09e342886b5 (diff)
Migrate /privacy to new architecture (#4202)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.ts10
1 files changed, 4 insertions, 6 deletions
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
@@ -248,11 +248,6 @@ export const useSlashCommandProcessor = (
action: (_mainCommand, _subCommand, _args) => openEditorDialog(),
},
{
- name: 'privacy',
- description: 'display the privacy notice',
- action: (_mainCommand, _subCommand, _args) => openPrivacyNotice(),
- },
- {
name: 'stats',
altName: 'usage',
description: 'check session stats. Usage: /stats [model|tools]',
@@ -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,
],
);