From 57fc344873edc0db9e9f7ff3e9fb167cd80e3ef2 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 6 Sep 2026 18:30:00 -0400 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 875aee0e07..a012382926 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -2752,10 +2752,13 @@ const chatCompletionEventHandler = async (data, message, chatId) => { const { id, done, choices, content, output, sources, selected_model_id, error, usage } = data; - // Store raw OR-aligned output items from backend + // Store raw OR-aligned output items from backend if (output) { message.output = output; message.content = getOutputText(output); + if (data.type === 'response.output_text.delta' && navigator.vibrate && $settings?.hapticFeedback) { + navigator.vibrate(5); + } dispatchCallOverlayAudio(message); }