From 03b3917f62e5db2b00bcb27df9d78ee5289d9a85 Mon Sep 17 00:00:00 2001 From: Harold Mciver Date: Tue, 15 Jul 2025 16:10:04 -0400 Subject: updated `/stats` to use new slash command arch (#4146) --- packages/cli/src/ui/hooks/slashCommandProcessor.ts | 30 ---------------------- 1 file changed, 30 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 e8d773b4..31397af5 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -247,36 +247,6 @@ export const useSlashCommandProcessor = ( description: 'set external editor preference', action: (_mainCommand, _subCommand, _args) => openEditorDialog(), }, - { - name: 'stats', - altName: 'usage', - description: 'check session stats. Usage: /stats [model|tools]', - action: (_mainCommand, subCommand, _args) => { - if (subCommand === 'model') { - addMessage({ - type: MessageType.MODEL_STATS, - timestamp: new Date(), - }); - return; - } else if (subCommand === 'tools') { - addMessage({ - type: MessageType.TOOL_STATS, - timestamp: new Date(), - }); - return; - } - - const now = new Date(); - const { sessionStartTime } = session.stats; - const wallDuration = now.getTime() - sessionStartTime.getTime(); - - addMessage({ - type: MessageType.STATS, - duration: formatDuration(wallDuration), - timestamp: new Date(), - }); - }, - }, { name: 'mcp', description: 'list configured MCP servers and tools', -- cgit v1.2.3