diff options
| author | Billy Biggs <[email protected]> | 2025-06-21 12:15:43 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-21 19:15:43 +0000 |
| commit | 99a6dc026708d91bb628873a769c615640a2c0ea (patch) | |
| tree | afd188378b191f3dca11ae571d9f29095bc6e7b4 /packages/cli/src/ui/hooks/slashCommandProcessor.ts | |
| parent | 03af6235a922c3cf753ce0b1e257830dee5340aa (diff) | |
Update memory and context summary UI for multiple context filenames (#1282)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 679c294c..66dfe213 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -32,6 +32,7 @@ import { createShowMemoryAction } from './useShowMemoryCommand.js'; import { GIT_COMMIT_INFO } from '../../generated/git-commit.js'; import { formatDuration, formatMemoryUsage } from '../utils/formatters.js'; import { getCliVersion } from '../../utils/version.js'; +import { LoadedSettings } from '../../config/settings.js'; export interface SlashCommandActionReturn { shouldScheduleTool?: boolean; @@ -60,6 +61,7 @@ export interface SlashCommand { */ export const useSlashCommandProcessor = ( config: Config | null, + settings: LoadedSettings, history: HistoryItem[], addItem: UseHistoryManagerReturn['addItem'], clearItems: UseHistoryManagerReturn['clearItems'], @@ -135,9 +137,9 @@ export const useSlashCommandProcessor = ( ); const showMemoryAction = useCallback(async () => { - const actionFn = createShowMemoryAction(config, addMessage); + const actionFn = createShowMemoryAction(config, settings, addMessage); await actionFn(); - }, [config, addMessage]); + }, [config, settings, addMessage]); const addMemoryAction = useCallback( ( |
