diff --git a/mobile-uni/src/components/chat/ChatComposer.vue b/mobile-uni/src/components/chat/ChatComposer.vue index 6b743905..e0e96bae 100644 --- a/mobile-uni/src/components/chat/ChatComposer.vue +++ b/mobile-uni/src/components/chat/ChatComposer.vue @@ -238,7 +238,15 @@ const teardown = () => { recording.value = false; }; -defineExpose({ teardown }); +/** Fill the text input from outside (e.g. adopt a coach suggestion) and + * switch to keyboard mode so the user can edit before sending. */ +const setDraft = (text: string) => { + voiceMode.value = false; + panelOpen.value = false; + draft.value = text; +}; + +defineExpose({ teardown, setDraft });