Skip to content

Commit 38a0d61

Browse files
committed
rename slash-commands to commands
1 parent 8d01bc5 commit 38a0d61

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cli/src/chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
66
import stringWidth from 'string-width'
77
import { useShallow } from 'zustand/react/shallow'
88

9+
import { routeUserPrompt } from './commands/router'
910
import { AgentModeToggle } from './components/agent-mode-toggle'
1011
import { LoginModal } from './components/login-modal'
1112
import {
@@ -30,7 +31,6 @@ import { useChatScrollbox } from './hooks/use-scroll-management'
3031
import { useSendMessage } from './hooks/use-send-message'
3132
import { useSuggestionEngine } from './hooks/use-suggestion-engine'
3233
import { useSystemThemeDetector } from './hooks/use-system-theme-detector'
33-
import { handleSlashCommands } from './slash-commands/handlers'
3434
import { useChatStore } from './state/chat-store'
3535
import { flushAnalytics } from './utils/analytics'
3636
import { getUserCredentials } from './utils/auth'
@@ -811,7 +811,7 @@ export const App = ({
811811

812812
const handleSubmit = useCallback(
813813
() =>
814-
handleSlashCommands({
814+
routeUserPrompt({
815815
abortControllerRef,
816816
agentMode,
817817
inputRef,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { User } from '../utils/auth'
77
import type { AgentMode } from '../utils/constants'
88
import type { UseMutationResult } from '@tanstack/react-query'
99

10-
export function handleSlashCommands(params: {
10+
export function routeUserPrompt(params: {
1111
abortControllerRef: React.MutableRefObject<AbortController | null>
1212
agentMode: AgentMode
1313
inputRef: React.MutableRefObject<MultilineInputHandle | null>

0 commit comments

Comments
 (0)