Skip to content

fix(mobile): prevent duplicate Stop control during dictation error phase (#244) - #716

Merged
rynfar merged 1 commit into
pylonfrom
fix/issue-244-mobile-stop-control-duplicate
Sep 21, 2026
Merged

rynfar merged 1 commit into
pylonfrom
fix/issue-244-mobile-stop-control-duplicate

Conversation

@rynfar

@rynfar rynfar commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #244

Problem

In apps/mobile/src/features/threads/ThreadComposer.tsx, the collapsed composer actions rendered under {!isExpanded && !voiceInput.isBusy} and the toolbar rendered under {isToolbarVisible} (where isToolbarVisible = isExpanded || isVoiceInputPresented).

During the dictation error phase, isVoiceInputPresented is true (displaying the error status label) while voiceInput.isBusy is false (as error is not a busy phase). When the composer was not expanded, both conditions evaluated to true, causing two Stop buttons and duplicate dictation actions to render simultaneously.

Solution

  • Gated the collapsed actions on threadComposerShowsCollapsedActions({ isToolbarVisible }) (i.e. !isToolbarVisible) so that collapsed actions and the toolbar actions are strictly mutually exclusive by construction.
  • Added unit tests in ThreadComposer.test.ts verifying that collapsed actions are hidden whenever the toolbar is visible (such as during dictation error status presentation).

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
pylon-marketing Ignored Ignored Preview Sep 21, 2026 9:32pm UTC

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S labels Sep 21, 2026
@rynfar
rynfar merged commit 5edf6bc into pylon Sep 21, 2026
19 checks passed
@rynfar
rynfar deleted the fix/issue-244-mobile-stop-control-duplicate branch September 21, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mobile: two Stop controls render during the dictation error phase

1 participant