fix(mobile): composer buttons stay visible with animations removed #19239
main fromrefs/pull/19239/head·merged by juliusmarminge View on GitHubWith Android Remove animations enabled, the composer toolbar can mount at its flip animation's initial zero opacity and remain invisible but tappable. Skip the toolbar entering and exiting animations under reduced motion so controls mount in their resting style; ordinary motion keeps the existing flip.
Retains the focused fix and device investigation by @Pipyakas from #19239. Main was merged without rewriting contributor history. The shared toolbar covers new threads, existing threads and scheduled-task prompts.
Verification on headless Linux:
- Focused existing voice-input tests: 72 pass across 6 files (72 → 72).
- PR-specific tests: 0 → 0. Native Reanimated mount opacity cannot be proven by mocked props or static component output.
- Mobile typecheck and formatting pass. Targeted lint exits successfully with three warnings on unchanged shared-value assignments.
- Independent full-diff reviews: Claude Opus 5.5 and GPT-6-Sol, round 1, no blockers.
Contributor Android captures, inspected and retained. These predate the main merge and are not fresh takeover proof:
| Before, animations removed | After |
|---|---|
![]() | ![]() |
Reanimated reads reduced motion at initialization; restart after changing the system setting. Native device access is disabled here. A human still needs Android and iOS checks with reduced motion on/off, repeated opens, and transitions into/out of dictation across the three consumers. macOS, Windows and Electron desktop were not run; this change only affects mobile. No contracts, providers, transport or documentation changes.
Maintainer takeover: GPT-6-Astra (tests), GPT-6.1-Sol (implementation), Claude Opus 5.5 and GPT-6-Sol (reviews), through T3 Code delegation and the Codex harness.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
Approvability#
Verdict: Approved at
8b7fdf2Macroscope's review found this PR approvable — This single-file fix removes the problematic toolbar flip animation only for reduced-motion users, allowing composer controls to mount visibly while preserving existing behavior for other users. Its scope is isolated to presentation behavior and introduces no defaults, schema, infrastructure, or static-analysis changes.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).Warning
Review limit reached#
Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.
Next included review available in 12 minutes.
View limit details
-
Limit details: You’ve used all 10 included reviews currently available.
Review configuration:
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a494f54c-760f-48ab-be67-91f8df279789
📥 Commits
-
Reviewing files that changed from the base of the PR and between e0f79c5b79a8c42db87b3583378316077c3b58fa and 04631fa85119eda28ec89683dc83af5c7a0d600b.
📒 Files selected for processing: 1
-
apps/mobile/src/features/voice-input/ComposerDictationControl.tsx
-
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
33995412-d05a-422d-805e-14cff3a73f11
📥 Commits
-
Reviewing files that changed from the base of the PR and between 8b7fdf2be26cf1578c8da997fa682f64ca357515 and e0f79c5b79a8c42db87b3583378316077c3b58fa.
📒 Files selected for processing: 1
-
apps/mobile/src/features/voice-input/ComposerDictationControl.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
📝 Walkthrough
-
The composer dictation toolbar now checks the system reduced-motion setting. When reduced motion is enabled, the toolbar omits entering and exiting animations. Otherwise, it uses the existing direction-specific animations.
Changes: Composer toolbar animations
Layer / File(s) Summary Reduced-motion animation selection
apps/mobile/src/features/voice-input/ComposerDictationControl.tsxThe toolbar disables entering and exiting animations when reduced motion is enabled. Otherwise, it retains the existing direction-specific animation selection. Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers:
juliusmarminge
Merge Risk: ⚪ Minimal · up to
e0f79-
With reduced motion enabled when the app starts, the composer toolbar skips its flip transitions and remains visible. No actionable merge-blocking risk remains.
Pre-merge checks:
6-
Check name Status Explanation Linked Issues check The description references issues #16080and#16239and links to maintainer triage approval for the fix direction.Out of Scope Changes check The change is limited to reduced-motion handling in ComposerDictationToolbar and aligns with the stated Android visibility fix. Linked Issues check Issue #16080requires the Android new-thread composer toolbar to remain visible when animations are removed. The change readsuseReducedMotion()and omits the toolbarenteringandexitinganimat…Out of Scope Changes check The pull request changes only apps/mobile/src/features/voice-input/ComposerDictationControl.tsx. The import, conditional animation props, and explanatory comment directly support issue#16080. The s…Title check The title is concise, uses the conventional commit format, and accurately identifies the mobile composer visibility fix when animations are removed. Description check The description clearly explains the problem, implementation, affected consumers, linked issues, verification results, screenshots, limitations, and agent usage. It does not use the template headings … Full details: Linked Issues check
-
Explanation
Issue
#16080requires the Android new-thread composer toolbar to remain visible when animations are removed. The change readsuseReducedMotion()and omits the toolbarenteringandexitinganimations when reduced motion is enabled. The toolbar can therefore mount in its resting style. The existing animations remain when reduced motion is disabled. No additional coding requirement is stated in the linked issue.
Full details: Out of Scope Changes check
-
Explanation
The pull request changes only
apps/mobile/src/features/voice-input/ComposerDictationControl.tsx. The import, conditional animation props, and explanatory comment directly support issue#16080. The shared component behavior is relevant to the affected composer. No unrelated change is shown.
Full details: Description check
-
Explanation
The description clearly explains the problem, implementation, affected consumers, linked issues, verification results, screenshots, limitations, and agent usage. It does not use the template headings and does not include a fresh motion recording or an explicit maintainer approval comment, but it is otherwise substantially complete and on topic.
-
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
-
juliusmarminge assignedjuliusmarminge
Taking over this one as maintainer for batch composer-chat-03. I’ll retain the original PR and author credit, verify the reduced-motion behavior as far as this Linux environment allows, and run independent reviews. No merge in this pass.
juliusmarminge merged this651fe94
juliusmarminge closed this
Sign in to join this conversation.


macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes