From fbe09cd35e6c043ea2dc69281b758e5ad9f3896c Mon Sep 17 00:00:00 2001 From: Harold Mciver Date: Wed, 16 Jul 2025 20:27:36 -0400 Subject: update `/editor` to new slash command arch (#4153) Co-authored-by: Abhi --- 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 c1c65080..237356fa 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -199,11 +199,6 @@ export const useSlashCommandProcessor = ( const legacyCommands: LegacySlashCommand[] = useMemo(() => { 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) => { @@ -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, ], ); -- cgit v1.2.3