diff --git a/apps/stage-tamagotchi/src/components/InteractiveArea.vue b/apps/stage-tamagotchi/src/components/InteractiveArea.vue index 7ca5de62d..b28f7e869 100644 --- a/apps/stage-tamagotchi/src/components/InteractiveArea.vue +++ b/apps/stage-tamagotchi/src/components/InteractiveArea.vue @@ -15,7 +15,7 @@ const listening = ref(false) // const { askPermission } = useSettingsAudioDevice() const { enabled, selectedAudioInput } = storeToRefs(useSettingsAudioDevice()) -const { send, onAfterSend, discoverToolsCompatibility } = useChatStore() +const { send, onAfterMessageComposed, discoverToolsCompatibility } = useChatStore() const { messages } = storeToRefs(useChatStore()) const { t } = useI18n() const providersStore = useProvidersStore() @@ -97,7 +97,7 @@ watch([activeProvider, activeModel], async () => { } }) -onAfterSend(async () => { +onAfterMessageComposed(async () => { messageInput.value = '' }) diff --git a/apps/stage-web/src/components/Layouts/InteractiveArea.vue b/apps/stage-web/src/components/Layouts/InteractiveArea.vue index 3ab40c7ab..bcc7ad76b 100644 --- a/apps/stage-web/src/components/Layouts/InteractiveArea.vue +++ b/apps/stage-web/src/components/Layouts/InteractiveArea.vue @@ -25,7 +25,7 @@ const { themeColorsHueDynamic } = storeToRefs(useSettings()) const { askPermission } = useSettingsAudioDevice() const { enabled, selectedAudioInput } = storeToRefs(useSettingsAudioDevice()) -const { send, onAfterSend, discoverToolsCompatibility } = useChatStore() +const { send, onAfterMessageComposed, discoverToolsCompatibility } = useChatStore() const { messages } = storeToRefs(useChatStore()) const { audioContext } = useAudioContext() const { t } = useI18n() @@ -127,7 +127,7 @@ onMounted(() => { start() }) -onAfterSend(async () => { +onAfterMessageComposed(async () => { messageInput.value = '' }) diff --git a/apps/stage-web/src/components/Layouts/MobileInteractiveArea.vue b/apps/stage-web/src/components/Layouts/MobileInteractiveArea.vue index 2660c889d..6188c42d8 100644 --- a/apps/stage-web/src/components/Layouts/MobileInteractiveArea.vue +++ b/apps/stage-web/src/components/Layouts/MobileInteractiveArea.vue @@ -33,7 +33,7 @@ useResizeObserver(document.documentElement, () => screenSafeArea.update()) // const { askPermission } = useSettingsAudioDevice() const { themeColorsHueDynamic, stageView, stageViewControlsEnabled } = storeToRefs(useSettings()) const { enabled, selectedAudioInput } = storeToRefs(useSettingsAudioDevice()) -const { send, onAfterSend, discoverToolsCompatibility } = useChatStore() +const { send, onAfterMessageComposed, discoverToolsCompatibility } = useChatStore() const { messages } = storeToRefs(useChatStore()) const { t } = useI18n() @@ -97,7 +97,7 @@ watch(enabled, async (value) => { } }) -onAfterSend(async () => { +onAfterMessageComposed(async () => { messageInput.value = '' })