GeezerVison is showing github.com — perf(mobile): stop idle thread arrangement frames by saphid · Pull Request #25318 · pingdotgg/t3code
Conversation
saphid
commented
Oct 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
While arranging mobile threads, a stationary drag can keep scheduling animation frames when the next clamped scroll offset cannot change. This arms the existing autoscroll loop only when scrolling can advance, while gesture, layout and scroll events can restart it. Active scrolling keeps its velocity and frame cadence.
Merged upstream 79daf43, retaining LegendList and the steady thread-list atoms. The mounted tests now mock those current interfaces; their assertions are unchanged. This update includes main’s #35697 fix for the upstream typecheck failure; the two-file feature diff is unchanged from the earlier integration.
Verification of the repaired tree:
- Before adapting the test harness, all 13 cases failed on missing steady-atom exports. After adaptation, all 13 pass.
CI=true vp run check:changed 79daf43c1cab9c9e74733eaf7b95e1926f237d96 passes format, lint, knip, typechecks for 2 packages, 13 tests and 6 selected compiler checks. These ran in an isolated Linux sandbox synced from the repair; its Git commit is synthetic. Both changed source-file hashes were checked after the run and match the frozen tree. Hosted CI on the new merge remains pending.
- Fresh independent Claude Opus 5.5/high review checked frozen tree
5374d7af358a5539c44b3e6a317066cde3333d90 and found no blocking source defects. The reviewer inspected the test logs rather than rerunning tests.
The earlier 8-fail/5-pass baseline, 300→0 idle callback counts, 760→489 differential trace and iOS Simulator runs describe the old FlatList implementation. They are historical evidence, not measurements of this LegendList integration. The 13 mounted cases use a list mock without native scroll clamping/events, so they establish scheduling logic rather than current native list behavior. A fresh native drag/edge-scroll/drop pass on LegendList and Android verification remain outstanding. No frame-rate, GPU, energy or battery improvement is claimed.
Original implementation: GPT-6.1 Sol in the Codex harness. Integration and test adapters: GPT-6.1 Sol in Codex; independent integration review: Claude Opus 5.5/high in the Claude Code harness through T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at cea150c
Macroscope's review found this PR approvable — Thread arrangement now schedules autoscroll frames only when scrolling can progress, avoiding idle animation work. Existing movement limits, cancellation, and save-on-drop behavior remain unchanged.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Thread arrangement drag autoscrolling now schedules animation frames only when scrolling can advance. The loop caps elapsed time, clamps offsets, and updates the drag destination. Tests cover edge conditions, geometry changes, finalization, and cancellation.
Changes: Thread arrangement autoscrolling
| Layer / File(s) |
Summary |
Edge-based autoscroll apps/mobile/src/features/threads/ThreadArrangementSheet.tsx |
Drag updates, layout changes, and scroll events can arm autoscrolling. Each frame caps elapsed time at 32 ms, clamps the target offset, updates the drag preview without rearming, and continues only when scrolling can advance. |
Autoscroll behavior and lifecycle tests apps/mobile/src/features/threads/ThreadArrangementSheet.test.tsx |
A controllable test harness covers edge holds, edge entry and re-entry, clamping, geometry changes, finalization, and cancellation on order changes, closing, or unmounting. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Refactor
Possibly related PRs
- pingdotgg/t3code#19892: Changes the same component’s drop-to-
moveThread behavior, which this PR’s tests assert.
- pingdotgg/t3code#24827: Changes drag and order-change behavior in the same component, which relates to this PR’s frame cancellation tests.
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to cea15
-
This change stops the thread arrangement sheet from scheduling animation frames when dragging cannot scroll, while keeping edge-scroll behavior the same. No concrete regression was identified in the reviewed code or tests. The Build and Typecheck CI job failed, but the visible output points to unrelated server packages, so confirm that failure is not caused by this PR before merging.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "perf(mobile): stop idle thread arrangement frames" matches the main change. The changeset arms the autoscroll animation-frame loop only when the clamped offset can change, so idle frames st… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Description check |
 |
The description covers the problem (stationary drags keep scheduling animation frames when the clamped scroll offset cannot change) and the change (the autoscroll loop is armed only when scrolling can… |
Full details: Title check
-
Explanation
The title "perf(mobile): stop idle thread arrangement frames" matches the main change. The changeset arms the autoscroll animation-frame loop only when the clamped offset can change, so idle frames stop. It follows the conventional commit style the template asks for.
Full details: Description check
-
Explanation
The description covers the problem (stationary drags keep scheduling animation frames when the clamped scroll offset cannot change) and the change (the autoscroll loop is armed only when scrolling can advance, with restarts on gesture, layout, and scroll events). It also gives extensive verification detail, including test counts, the CI command, and a review. It does not follow the template headings (Problem, Change, Scope, Verification), and it has no Scope section. The Scope section needs a linked issue that shows the bug, or a reason why no issue is needed. The title line is missing. The template asks for a conventional commit title. The description also gives no before/after evidence for the UI-adjacent motion change, and it does not state a recording or screenshots. The verification text is long and partly describes a different implementation (the old FlatList baseline and historical evidence), which makes it harder to see what was verified for the current change. The description does state the model and harness used, as the template asks. The core content is present, so the check passes with respect to completeness, but the template structure is not followed.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 47c62b2 and cea150c.
Files selected for processing: 2
-
apps/mobile/src/features/threads/ThreadArrangementSheet.test.tsx
apps/mobile/src/features/threads/ThreadArrangementSheet.tsx
Limit details: You’ve used all 10 included reviews currently available.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Preserve LegendList and steady thread-list state while retaining the drag autoscroll scheduling fix.
Co-Authored-By: GPT-6.1 Sol <[email protected]>
Keep the reviewed mobile arrangement change unchanged while bringing in
upstream pingdotgg#35697 for the broken CI merge base.
Note 🤖 Claude Fable 5.2 responding on behalf of Alex (saphid)
Withdrawing this PR. It has been open for 18 days without maintainer review, and I am closing it to keep my open queue small.
The branch stays at saphid:perf/mobile-arrangement-raf-20261026. If the change still matters, a fresh, smaller PR will link back to this one.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
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.
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.
|