Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): composer buttons stay visible with animations removed #19239

MergedPipyakas(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/19239/headmerged by juliusmarminge View on GitHub

With 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.

Fixes #16080 and #16239.

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 removedAfter
Before: composer toolbar controls are invisibleAfter: composer toolbar controls are visible

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

    2. Approvability

      Verdict: Approved at 8b7fdf2

      Macroscope'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).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      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.

      Check out review usage here.

      View limit details

      Limit details: You’ve used all 10 included reviews currently available.

      Learn how review limits work.

      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.tsx
      The 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: Passed 6
      Check nameStatusExplanation
      Linked Issues checkPassedThe description references issues #16080 and #16239 and links to maintainer triage approval for the fix direction.
      Out of Scope Changes checkPassedThe change is limited to reduced-motion handling in ComposerDictationToolbar and aligns with the stated Android visibility fix.
      Linked Issues checkPassedIssue #16080 requires the Android new-thread composer toolbar to remain visible when animations are removed. The change reads useReducedMotion() and omits the toolbar entering and exiting animat…
      Out of Scope Changes checkPassedThe 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 checkPassedThe title is concise, uses the conventional commit format, and accurately identifies the mobile composer visibility fix when animations are removed.
      Description checkPassedThe 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 #16080 requires the Android new-thread composer toolbar to remain visible when animations are removed. The change reads useReducedMotion() and omits the toolbar entering and exiting animations 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
      Comment `@coderabbitai help` to get the list of available commands.
    4. juliusmarminge assignedjuliusmarminge

    5. 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.

    6. juliusmarminge merged this651fe94

    7. juliusmarminge closed this

Sign in to join this conversation.