diff --git a/vite/src/pages/flow_free.jsx b/vite/src/pages/flow_free.jsx index 43db6c1..f18528b 100644 --- a/vite/src/pages/flow_free.jsx +++ b/vite/src/pages/flow_free.jsx @@ -147,6 +147,12 @@ export function FreeFlow(){ refAudioPrompt.current.onended = () => { console.log('Audio prompt ended, setting chat status to User'); setChatStatus(ChatStatus.User); // Set chat status to User after audio ends + + const user_input = history.find(msg => msg.role === 'user'); + if(user_input && user_input.content.trim() !== '') { + sendOsc(OSC_ADDRESS.STATUS, 'go'); // Send OSC status message + } + } }else{ @@ -227,11 +233,7 @@ export function FreeFlow(){ }else{ // if history contains user input, send it - const user_input = history.find(msg => msg.role === 'user'); - if(user_input && user_input.content.trim() !== '') { - sendOsc(OSC_ADDRESS.STATUS, 'go'); // Send OSC status message - } - + sendPrompt(); }