fix(mobile): keep iOS chat rows aligned after measurement #11813
main fromrefs/pull/11813/head·merged by juliusmarminge View on GitHubWhat Changed#
Keep iOS chat rows on LegendList's non-animated positioning path, matching Android. Remove both row layout transitions so native row positions follow measured sizes.
Why#
Chat rows can retain stale native positions when thread updates change their measured layout, even with a zero-duration transition. In the mock-data reproduction below, the next user bubble overlaps the previous turn's Worked row and leaves an oversized gap before the assistant response.
The failure is intermittent. Reproduced on an iPhone 17 simulator running iOS 27.0 with 15 turns, 30 messages, and 90 tool activities. A local fixture proxy delivers an active-turn shell summary while the conversation details still describe the completed turn, exercising the separate subscription updates seen during synchronization. The rendering code is unmodified in the baseline. The overlap remains after settling; scrolling can clear it.
After removing the transitions, a cold launch and the same update sequence keep the rows separated. Four further completed-to-active summary transitions and scrolling also kept the correct layout. Android already uses this positioning path. Web, desktop, providers, and wire contracts are unaffected.
UI Changes#
All screenshots and recordings below come from the simulator using fictional conversation text. Previously uploaded media has been deleted.
| Before | After |
|---|---|
![]() | ![]() |
In the before image, “15 demo colors” occupies the same vertical space as “Worked for 3.0s”. In the after image, it sits below the separator.
Before recording · After recording
The before recording starts in the failed state and shows scrolling clearing it. The after recording shows the correctly aligned rows following the summary update and during scrolling.
Validation: mobile TypeScript passed; 86 focused tests passed across LegendList initial reveal, mobile layout, and live-follow. Targeted formatting and lint passed, with existing React Compiler warnings.
Checklist#
- This PR is small and focused
- I explained what changed and why
- I included before/after screenshots for any UI changes
- I included a video for animation/interaction changes
Model and harness: GPT-6 via Codex.
Summary by CodeRabbit#
- Bug Fixes
- Updated thread feed row positioning to avoid layout animations, providing more consistent behavior across platforms.
- 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
3328a13Macroscope's review found this PR approvable — This is a focused one-file mobile bug fix that removes stale-prone iOS row layout transitions so virtualized rows follow their measured positions, matching Android behavior. Its impact is limited to feed row positioning and does not introduce new capabilities, schema changes, or production configuration changes.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
558ce759-3b17-49db-87fd-907d9fbdfb98📥 Commits
Reviewing files that changed from the base of the PR and between 7931227977ca3e6f3354a63467caa634ab79796f and 3328a139a6fe4797a6d7b11c6813309fef70ae3d.
📒 Files selected for processing (1)
apps/mobile/src/features/threads/ThreadFeed.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
Walkthrough#
The thread feed removes its
LinearTransitionconfiguration anditemLayoutAnimationprop. Android and iOS now use LegendList’s non-animated row positioning path.Changes#
Thread feed row positioning
Layer / File(s) Summary Remove row layout animation
apps/mobile/src/features/threads/ThreadFeed.tsxThe file removes LinearTransition, its transition constants, and the platform-specificitemLayoutAnimationconfiguration.Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
3328aMobile rows now use the same non-animated positioning path on iOS and Android, with no evidenced functional regression. Merge risk is minimal.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1… Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request. Title check ✅ Passed The title clearly and concisely describes the main change: fixing iOS chat row alignment after measurement. Description check ✅ Passed The description includes complete What Changed, Why, UI Changes, and Checklist sections. It explains the issue, the fix, validation results, and provides before/after screenshots and recordings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Comment `@coderabbitai help` to get the list of available commands.juliusmarminge merged thisd07ffbe
juliusmarminge closed this
Sign in to join this conversation.


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