diff --git a/apps/docs/src/renderer/ai/AiPanel.tsx b/apps/docs/src/renderer/ai/AiPanel.tsx index 72c794e..896df13 100644 --- a/apps/docs/src/renderer/ai/AiPanel.tsx +++ b/apps/docs/src/renderer/ai/AiPanel.tsx @@ -874,6 +874,9 @@ export function AiPanel({ loopRef.current?.reset() setBusy(false) setChat([]) + // Restored history is painted above the live turn: without this the + // previous conversation survives "New chat" on screen (#195). + setHistoricChat([]) sentAttachmentsRef.current = [] inputRef.current?.focus() } @@ -1033,7 +1036,7 @@ export function AiPanel({ {t('aiPanelTitle')}
- {chat.length > 0 && ( + {(chat.length > 0 || historicChat.length > 0) && (