diff options
| author | Harold Mciver <[email protected]> | 2025-07-15 16:10:04 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-15 20:10:04 +0000 |
| commit | 03b3917f62e5db2b00bcb27df9d78ee5289d9a85 (patch) | |
| tree | dc6007c213bbdef4a39f1627d7c3d59a3bf44a23 /packages/cli/src/ui/hooks/slashCommandProcessor.ts | |
| parent | 8d9dc44b71c71dc7800f1dedcc5f88ec1ab654fa (diff) | |
updated `/stats` to use new slash command arch (#4146)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 30 |
1 files changed, 0 insertions, 30 deletions
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 @@ -248,36 +248,6 @@ export const useSlashCommandProcessor = ( 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', action: async (_mainCommand, _subCommand, _args) => { |
