Have /clear clear <Static> content by remounting (#250)

This commit is contained in:
Seth Troisi
2025-05-05 17:52:29 +00:00
committed by GitHub
parent 74f8f5eaa9
commit a0bed3e716
3 changed files with 15 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ const addHistoryItem = (
// Hook now accepts apiKey and model
export const useGeminiStream = (
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
refreshStatic: () => void,
config: Config,
openThemeDialog: () => void,
) => {
@@ -73,6 +74,7 @@ export const useGeminiStream = (
// Instantiate command processors
const { handleSlashCommand, slashCommands } = useSlashCommandProcessor(
setHistory,
refreshStatic,
setDebugMessage,
getNextMessageId,
openThemeDialog,