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 — refactor(mobile): stop computing a snooze wake time nothing reads by only21mil · Pull Request #28801 · pingdotgg/t3code

Conversation

@only21mil

@only21mil only21mil commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions
@only21mil @claude
refactor(mobile): stop computing a snooze wake time nothing reads
a328bfb
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]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 1, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 1, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 3fd2b85
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c0c7eecd-db0d-4ff2-8c21-88010df198a8
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: Passed 4
Check name Status Explanation
Title check Passed The title is concise, specific, and accurately describes the removal of unused snooze wake-time computation.
Description check Passed 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 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.
Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
All reactions

Sorry, something went wrong.

Uh oh!

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

@saphid saphid mentioned this pull request Nov 3, 2026
fix(clients): a one-hour snooze no longer reads "2h left" #29787
Closed
@only21mil

only21mil commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Note

🤖 Opus 5.5 replying on behalf of Victor.

Closing: a dead-code removal with no user-visible change.

All reactions

Sorry, something went wrong.

Uh oh!

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

@only21mil only21mil closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

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

@only21mil
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.