summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.ts
diff options
context:
space:
mode:
authorHarold Mciver <[email protected]>2025-07-16 20:27:36 -0400
committerGitHub <[email protected]>2025-07-17 00:27:36 +0000
commitfbe09cd35e6c043ea2dc69281b758e5ad9f3896c (patch)
tree481b16f1e56ae7fc0eea04de11f60fcd04e0e961 /packages/cli/src/ui/hooks/slashCommandProcessor.ts
parentab9eb9377fdfe7823be8ea0c7c394c5368b28951 (diff)
update `/editor` to new slash command arch (#4153)
Co-authored-by: Abhi <[email protected]>
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 c1c65080..237356fa 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
@@ -200,11 +200,6 @@ export const useSlashCommandProcessor = (
const commands: LegacySlashCommand[] = [
// `/help` and `/clear` have been migrated and REMOVED from this list.
{
- name: 'editor',
- description: 'set external editor preference',
- action: (_mainCommand, _subCommand, _args) => openEditorDialog(),
- },
- {
name: 'corgi',
action: (_mainCommand, _subCommand, _args) => {
toggleCorgiMode();
@@ -425,7 +420,6 @@ export const useSlashCommandProcessor = (
return commands;
}, [
addMessage,
- openEditorDialog,
toggleCorgiMode,
config,
session,
@@ -519,6 +513,9 @@ export const useSlashCommandProcessor = (
case 'theme':
openThemeDialog();
return { type: 'handled' };
+ case 'editor':
+ openEditorDialog();
+ return { type: 'handled' };
case 'privacy':
openPrivacyNotice();
return { type: 'handled' };
@@ -617,6 +614,7 @@ export const useSlashCommandProcessor = (
addMessage,
openThemeDialog,
openPrivacyNotice,
+ openEditorDialog,
],
);