Add attachment text extraction, auto web news skill, and chat/voice UI updates.
Simplify asset upload temp paths, refresh deploy docs for Aliyun DNS topology, and ship MindSpace content-scan and auth improvements. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,7 +17,7 @@ export function VoiceInputDialog({
|
||||
onSend: (text: string) => void;
|
||||
onError?: (message: string) => void;
|
||||
}) {
|
||||
const { phase, text, analyser, liveRecognition, updateText, stopListening, finishFallbackRecording } =
|
||||
const { phase, text, analyser, liveRecognition, stopListening, finishFallbackRecording, resetSession } =
|
||||
useVoiceSession({
|
||||
active: open && !disabled,
|
||||
onError,
|
||||
@@ -25,8 +25,9 @@ export function VoiceInputDialog({
|
||||
|
||||
const handleClose = useCallback(() => {
|
||||
stopListening();
|
||||
resetSession();
|
||||
onClose();
|
||||
}, [onClose, stopListening]);
|
||||
}, [onClose, resetSession, stopListening]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!open) return undefined;
|
||||
@@ -53,6 +54,7 @@ export function VoiceInputDialog({
|
||||
const value = text.trim();
|
||||
if (!value || disabled) return;
|
||||
stopListening();
|
||||
resetSession();
|
||||
onSend(value);
|
||||
onClose();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user