GeezerVison is showing github.com — refactor(mobile): stop computing a snooze wake time nothing reads by only21mil · Pull Request #28801 · pingdotgg/t3code
Conversation
Problem
The mobile thread list still works out the earliest snooze expiry on every rebuild and returns it as nextSnoozeWakeAt, but nothing reads it. #25809 moved snooze wake timing to useThreadListNow, which calls nextSnoozeWakeAfter, and removed the last readers of the layout field from HomeScreen and ThreadNavigationSidebar. The field and its per-snoozed-thread timestamp comparison stayed behind.
Change
Remove nextSnoozeWakeAt from ThreadListV2Layout and the loop code in buildThreadListV2Items that computed it. Nothing else changes: the list's ordering, shelves and items are built the same way, and snooze wakes still come from useThreadListNow.
Scope and approval
This deletes code that nothing reads and changes no behavior, so it needs no prior discussion. git grep nextSnoozeWakeAt on main finds only the deleted lines. I left the layout's isLast item field alone even though it also has no reader on main, because open PRs #15988 and #24863 rewrite that same item-building code and still write isLast.
Verification
git grep -n nextSnoozeWakeAt on the branch: no matches.
vp test run apps/mobile/src/features/threads/threadListV2.test.ts apps/mobile/src/features/threads/use-thread-list-now.test.tsx apps/mobile/src/features/home/homeThreadList.test.ts apps/mobile/src/state/thread-order.test.ts: 4 files, 74 tests passed.
vp run check:changed 3fd2b855c5: format, lint, knip, mobile typecheck, tests beside the change and the React compiler check all passed.
No screen changes, because the removed value was never rendered or read, so there are no screenshots.
Not checked: a manual run on an iOS or Android device.
Prior PRs
#4311 by t3dotgg added nextSnoozeWakeAt with thread snoozing. #25809 by juliusmarminge moved snooze wakes to useThreadListNow and removed its readers. No open or closed PR removes this field.
Generated with Claude Opus 5.5 and GPT-6.1 Terra and GPT-6.1 Sol in T3 Code Nightly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The mobile thread-list layout still computed nextSnoozeWakeAt after pingdotgg#25809
moved snooze wake timing to useThreadListNow. Nothing reads it, so remove
the field and the per-snoozed-thread timestamp comparison that fed it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Approved at a328bfb
Macroscope's review found this PR approvable — Removes an unused snooze wake-time calculation and layout field from the mobile thread list. No consumers use the removed value, and existing snooze handling remains 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.
|

No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 3fd2b85 and a328bfb.
Files selected for processing: 1
-
apps/mobile/src/features/threads/threadListV2.ts
Files with no reviewable changes: 1
-
- apps/mobile/src/features/threads/threadListV2.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Walkthrough
-
The thread list layout no longer exposes or computes nextSnoozeWakeAt. Snoozed threads remain in the snoozed list, and both search-results and regular layout results omit the field.
Changes: Snooze wake time removal
| Layer / File(s) |
Summary |
Remove wake time from layout apps/mobile/src/features/threads/threadListV2.ts |
The layout interface and both layout results no longer include nextSnoozeWakeAt. The function no longer tracks or scans for the earliest snooze wake time. Snoozed threads remain in the snoozed list. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Possibly related PRs
- pingdotgg/t3code#25809: Introduced
useThreadListNow, which supplies the current time to the mobile thread list for snooze wake timing.
Suggested labels: size:XS
Suggested reviewers: maria-rcks, t3dotgg, macroscopeapp
Merge Risk: Minimal · up to a328b
-
Snoozed threads should continue to wake through the existing clock path. No merge-blocking issue was found in this change.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title is concise, specific, and accurately describes the removal of unused snooze wake-time computation. |
| Description check |
 |
The description includes all required sections. It explains the problem, change, scope rationale, verification results, unverified device testing, and the absence of UI changes. |
| 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. |
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note 🤖 Opus 5.5 replying on behalf of Victor.
Closing: a dead-code removal with no user-visible change.
|
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:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in 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.
|