🐛 Launcher Voice Affordance and Textarea Auto-Height#86
Merged
cristiantela merged 2 commits intov3-mainfrom Apr 17, 2026
Merged
🐛 Launcher Voice Affordance and Textarea Auto-Height#86cristiantela merged 2 commits intov3-mainfrom
cristiantela merged 2 commits intov3-mainfrom
Conversation
paulobernardoaf
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of Change
Motivation and Context
The launcher treated “voice available” as equivalent to
isVoiceEnabledByClient, so the split launcher / voice entry affordance could appear even when voice was not actually startable (for example server disabled, unsupported, or voice already active). That made the UI suggest an action the app would not honor in the same way users expected.The message input textarea autosize relied on
scrollHeightright after layout changes. In some casesscrollHeightwas initially0(no stable layout yet), which led to incorrect or collapsed height until something else forced a relayout.Summary of Changes
Launcher (
Launcher.jsx)canStartVoiceflag: client enabled, server enabled, mode supported, and not already in active voice mode.handleGraphicEqClicknow uses that shared flag instead of recomputing ad hoc (dependency array simplified accordingly).canStartVoiceinstead ofisVoiceEnabledByClientalone, so the “voice” launcher state matches real eligibility (weni-launcher--as-button, hover split with the graphic eq control).Input (
InputBox.jsx)useEffectwithuseLayoutEffectand a localadjustHeighthelper.ResizeObserveron the textarea so height is recalculated when its box size changes (for example after the widget gains real dimensions).scrollHeight === 0to avoid locking the field to a zero height before layout is ready.text,inputTextFieldHint, recording / camera / voice page / entering voice mode,mode).ResizeObserveris unavailable, falls back to a singleadjustHeightrun without observation.