GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): thread feed no longer stutters as scrolling slows on ProMotion iPhones by juliusmarminge · Pull Request #44387 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

On ProMotion iPhones, the thread feed stuttered as a scroll slowed down. Near the end of the deceleration, the content moved only every other frame (30 Hz) while the home list, Safari and iMessage stayed smooth.

The cause is react-native-worklets' iOS frame queue, which pauses its CADisplayLink after every frame. The keyboard-aware feed (KeyboardChatScrollView, KeyboardAwareLegendList) runs Reanimated mappers that read the scroll offset, and each scroll event requests one frame. So during a scroll the display link toggled on and off every vsync, and ProMotion halved the scroll's frame rate. The home list has no scroll-driven mappers, so it never hit this.

The fix is a patch to AnimationFrameQueue.mm: the display link now pauses only after 4 consecutive idle frames, instead of after every frame. Queuing work and pausing happen under the queue's mutex, so a request can't be lost between the empty check and the pause. Android uses Choreographer and is unaffected.

How I found it. I bisected on a device through Expo preview updates on this PR:

  • A plain AnimatedLegendList was smooth.
  • Neither anchoredEndSpace, the native ClippingScrollView decorator, the hit-test fix, Reanimated's Animated.ScrollView nor the wrapper's animated scroll view props changed anything.
  • Adding just a useScrollViewOffset tracker, a derived value and a reaction to the smooth list made it stutter.
  • Keeping the display link running with an always-on useFrameCallback made both that repro and the real feed smooth.

Verification. With the patched preview dev client from this PR, the real feed decelerates smoothly on the same ProMotion iPhone that showed the 30 Hz stepping. This changes the native fingerprint, so testing it needs that new client.

Upstream report: software-mansion/react-native-reanimated#11596. Remove this patch once a worklets release changes the queue.

🤖 Generated with Claude Code (Claude Opus 5.5, Claude Code harness in T3 Code)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@juliusmarminge juliusmarminge added the 🚀 Mobile Continuous Deployment Trigger Expo preview build label Nov 27, 2026
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 9a66ff1 · PR result: 2afc53b · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

🚀 Mobile preview

  🤖 Android 🍎 iOS
Fingerprint b6ac8c45f1d1d86db9b8929a8ec691bb76f6ca06 ad104bace7f6d6f83301b536f909c88110ecb15b
Dev client Install Install
Update Details Update Permalink Update Permalink
Update QR
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). size:M 30-99 changed lines (additions + deletions). and removed size:M 30-99 changed lines (additions + deletions). size:L 100-499 changed lines (additions + deletions). labels Nov 27, 2026
@juliusmarminge @claude
fix(mobile): thread feed no longer stutters as scrolling slows on Pro…
2afc53b
…Motion iPhones

react-native-worklets pauses its frame queue's display link after every
frame. The keyboard-aware feed's scroll-driven mappers request one frame
per scroll event, so during a scroll the link toggled on and off every
vsync and ProMotion iPhones halved the decelerating feed to 30 Hz. The
queue now pauses only after a few idle frames.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge
juliusmarminge force-pushed the t3/fix-mobile-scroll-deceleration-stutter branch from f2c2096 to 2afc53b Compare November 27, 2026 20:43
@juliusmarminge juliusmarminge changed the title chore(mobile): thread feed scroll stutter bisect toggle (do not merge) fix(mobile): thread feed no longer stutters as scrolling slows on ProMotion iPhones Nov 27, 2026
@github-actions github-actions Bot added the 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. label Nov 27, 2026
@juliusmarminge
juliusmarminge marked this pull request as ready for review November 27, 2026 21:09
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The react-native-worklets patch changes iOS animation frame queue behavior. A callback request resets the idle-frame count and unpauses the display link. The display link pauses after four empty frames. The workspace pins version 0.14.0 and registers the patch.

Changes: iOS display link queue

Layer / File(s) Summary
Queue execution and patch wiring
patches/[email protected], pnpm-workspace.yaml
The patch resets the idle-frame count when a callback is requested and pauses the display link after four empty frames. It removes scheduleQueueExecution and pullCallbacks. The workspace pins worklets version 0.14.0 and registers the patch.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: macroscopeapp, yash-singh1

Merge Risk: Minimal · up to 2afc5 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix (thread feed stutter on ProMotion iPhones) and the change area (mobile). It follows the conventional commit form. The changeset patches the react-native-worklets iOS frame queu…
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.
Description check Passed The description follows the template's main sections: Problem, Change, Scope, and Verification. It states the bug (30 Hz stepping on ProMotion iPhones during scroll deceleration), the root cause (the …
Full details: Title check

Explanation

The title names the fix (thread feed stutter on ProMotion iPhones) and the change area (mobile). It follows the conventional commit form. The changeset patches the react-native-worklets iOS frame queue, which is the cause of the stutter. The title describes the symptom rather than the patch, but it still refers to the main change.

Full details: Description check

Explanation

The description follows the template's main sections: Problem, Change, Scope, and Verification. It states the bug (30 Hz stepping on ProMotion iPhones during scroll deceleration), the root cause (the worklets iOS frame queue pauses CADisplayLink after every frame), and the fix (pause only after 4 consecutive idle frames under the mutex). It also gives bisection and device verification steps and links an upstream issue, so it covers the required information. Minor gaps: the Scope section does not explicitly say why the change is a bug fix rather than a feature, and does not link a repo issue for this bug (only an upstream Reanimated issue). The title and conventional-commit title are not in the description. The Verification section does not include before/after evidence for the motion change, though the template asks for a recording when motion or timing is involved. The model and harness line is present.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: t3/fix-mobile-scroll-deceleration-stutter
  • File: .coderabbit.config.ts
  • Commit: 2afc53b
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Team
  • Run ID: ad14468e-1239-40d7-ab1b-a6a4af44bc10
Commits

Reviewing files that changed from the base of the PR and between 9a66ff1 and 2afc53b.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 2

  • patches/[email protected]
  • pnpm-workspace.yaml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge mentioned this pull request Nov 27, 2026
[Worklets][iOS] Display link pauses after every frame, so scroll-driven mappers halve ProMotion scroll deceleration to 30 Hz software-mansion/react-native-reanimated#11596
Open
@juliusmarminge
juliusmarminge merged commit 40264a2 into main Nov 27, 2026
47 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge deleted the t3/fix-mobile-scroll-deceleration-stutter branch November 27, 2026 21:16
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
Merged
imetn added a commit to imetn/t4code that referenced this pull request Nov 28, 2026
@imetn
chore(upstream): port 42 high-value post-v0.1.13 PRs (mobile, web, se…
6008d4d
…rver)

Mobile (7 PRs):
- pingdotgg#44387 ProMotion 120Hz scroll stutter fix ([email protected] patch)
- pingdotgg#44161 iOS release status bar icons follow app theme
- pingdotgg#44939 Scroll to end no longer loses next tap
- pingdotgg#44937 image previews opened from composer chip stay closed
- pingdotgg#44660 center working glyph in Dynamic Island
- pingdotgg#44315 tapping image in html_render opens image viewer
- pingdotgg#30661 share a turn's final response from system share sheet (approved orthogonal graft in ThreadFeed.tsx)

Web & Desktop (17 PRs):
- pingdotgg#43101, pingdotgg#30027, pingdotgg#44935, pingdotgg#44900 Markdown code block & file tree preview, large preview Select-All Range copy, rendered table copy
- pingdotgg#44055, pingdotgg#44952, pingdotgg#44992 copy chat table as aligned text for chat apps (CJK & symbol width alignment)
- pingdotgg#33801 Mod+Alt+E maximizes right panel even when closed (T4 Tooltip preserved)
- pingdotgg#39122 snooze a thread indefinitely
- pingdotgg#44023 inline CLI update button in provider status section
- pingdotgg#33827 save files from preview panel to machine
- pingdotgg#44930, pingdotgg#44945, pingdotgg#44916, pingdotgg#44831, pingdotgg#44975, pingdotgg#45021 folder-add/draft/queue/HTML-reload/clear UX fixes

Server & Providers (18 PRs):
- pingdotgg#41726 Usage limits refresh skips full provider health checks (preserving T4 human-only manual Antigravity CLI probe and avoiding ACP health checks on limitsOnly)
- pingdotgg#32114, pingdotgg#43651 checkpoint capture baseline read & parallel source control discovery
- pingdotgg#44979 hung gh auth token no longer stalls MCP connect
- pingdotgg#44860, pingdotgg#44872 Claude main checkout settings/plugins & scratch folder cleanup
- pingdotgg#44902 send image attachments with actual byte magic MIME type (approved orthogonal graft in adapter.ts)
- pingdotgg#44994, pingdotgg#44399, pingdotgg#44406, pingdotgg#44418, pingdotgg#44448, pingdotgg#45014, pingdotgg#44827, pingdotgg#44913, pingdotgg#40454, pingdotgg#44863, pingdotgg#44926 terminal/git/Codex/ACP/CLI/desktop stability fixes

Verified:
- check:t4-locks main..HEAD: only the 2 user-approved orthogonal grafts (ThreadFeed.tsx, adapter.ts)
- Zero telemetry: 0 bytes changed in telemetry modules
- i18n:check pass across all 10 locales (0 untranslated zh.json keys)
- vp fmt --check pass across all 166 changed files
- Typecheck 0 new errors across all 13 touched packages
- Targeted unit tests + all 8 Web Chromium browser test suites (196/196) + independent GPT pre-merge review & fixes verified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

🚀 Mobile Continuous Deployment Trigger Expo preview build 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.