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(clients): a one-hour snooze no longer reads "2h left" by saphid · Pull Request #29787 · pingdotgg/t3code

Conversation

@saphid

@saphid saphid commented Nov 3, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Problem

Snoozing a thread "In 1 hour" can show "Snoozed, 2h left" in the web thread header, and "2h" on the mobile thread list, for the rest of the minute you snoozed it in. "In 3 hours" shows "4h". The web sidebar's snoozed shelf shows "60m" for the same thread at the same moment.

Duration snoozes keep the clock's seconds (snoozed at 12:00:30, wakes at 13:00:30). The web header and the mobile list pass snoozeWakeLabel a now floored to the minute (12:00:00), so the time left is 1h 0m 30s, and the label rounds hours up to "2h". The web sidebar passes the live time, so it gets 59m 50s and reads "60m". The header's comment says it uses "the same rounding as the sidebar's snoozed shelf, so both read the same hour", but they disagree.

Change

snoozeWakeLabel now counts whole clock minutes between now and the wake (both floored to the minute) before it picks a unit. A minute-floored now and a live now now give the same answer, so the header, sidebar and mobile list agree: a one-hour snooze reads "1h", then "59m" from the next minute. The hour and day labels still round up, and the label still reads at least "1m" until the wake passes. Wakes on a whole minute (the set-time presets) read the same as before when now is floored.

Scope and approval

Very small, focused fix for an obvious bug, so no prior issue: one shared helper shows a time left that is longer than the snooze the user just picked. It is 7 non-test lines in one function, with no product or behavior change outside this label.

Overlap search: the local PR index and REST searches for snoozeWakeLabel, "snooze left" and "snooze countdown". Closest: #26043 (merged, snooze menu preset times on mobile), #28801 (open, removes an unused mobile wake value), #29756 (open, the mobile scheduled-task "60 minutes" label, a different helper). None of those change this label. CodeRabbit also identified #27121, closed without merging: it adds an indefinite-snooze sentinel and changes the helper to return null for that sentinel; it does not repair timed-snooze rounding.

Verification

Current revision: 521f63c. Branch: main at merge time (0b6f482) merged in with no conflicts and no source changes. The diff against main is still the same two files, 19 additions and 6 deletions.

  • Red on main: vp test run src/state/threadSnoozed.test.ts -t snoozeWakeLabel (in packages/client-runtime) failed with AssertionError: expected '2h' to be '1h'. This ran on an earlier main. Integrated main has the same snoozeWakeLabel body.

  • Green, on this merge (Linux, Boat sandbox):

    • packages/client-runtime/src/state/threadSnoozed.test.ts: 36 passed. The new case checks a 13:00:30 wake from a floored and a live now (both "1h"), a 3-hour snooze ("3h"), the next minute ("59m"), the last seconds ("1m") and the wake itself ("now").
    • apps/mobile/src/features/threads/threadListV2.test.ts: 65 passed. This includes the existing wake-countdown label case.
    • CI=true vp run check:changed against main 0b6f482: passed (format, lint, knip, typecheck of 7 packages, the 36 snooze tests).
  • The earlier Test / Check failure was scripts/check-changed.test.ts > lints an Astro component and runs knip when only it changed. It was unrelated to this PR, and #29839 fixed it on main. That fix is part of this merge, and CI on main 0b6f482 passed.

  • Web client (existing evidence, not recaptured): Maria captured this in Chrome at 1d6c3bc (the previous head, the same snooze change on an earlier main). Choosing "In 1 hour" showed "Snoozed, 1h left" in the header and "1h" in the shelf, and Wake now worked. The merge changes neither snoozeWakeLabel nor the now values its callers pass.

    one-hour snooze agrees in the header and shelf

  • Not checked: a native mobile client. On mobile, the change is limited to the string this pure function returns.

Independent source review of the full two-file contribution and merge by GPT-6.1 Sol (high) through Codex in T3 Code found no actionable findings. All required CI checks on this published merge pass. CodeRabbit reviewed this head with no actionable comments, and Macroscope approved this head.

Created with Claude Opus 5.5 in Claude Code (T3 Code). Maria merged an earlier main with GPT-6.1 Sol. Claude Opus 5.5 in Claude Code (T3 Code) merged main at the revision above and re-ran verification.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@saphid @claude @github-actions
fix(clients): a one-hour snooze no longer reads "2h left"
94804cb
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 3, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 3, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 94804cb

Macroscope's review found this PR approvable — Snooze countdown labels now use clock-minute rounding so a one-hour snooze does not display “2h left.” The change affects presentation only, leaving wake times and snooze behavior unchanged.

No code changes detected at 521f63c. Prior analysis still applies.

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 3, 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 snooze wake label calculation now uses floored clock-minute boundaries. Tests cover minute, hour, and expired-wake labels, including timestamps with differing seconds.

Changes: Snooze wake labels

Layer / File(s) Summary
Calculate and test wake labels
packages/client-runtime/src/state/threadSettled.ts, packages/client-runtime/src/state/threadSnoozed.test.ts
The calculation returns “now” for expired wakes, minutes below an hour, rounded-up hours below 24 hours, and rounded-up days otherwise. Tests cover labels at minute and hour intervals and at the wake timestamp.

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

Change: Bug fix

Possibly related PRs

  • pingdotgg/t3code#27121: This PR also changes snoozeWakeLabel and affects the label contract and rounding behavior.

Suggested reviewers: t3dotgg

Merge Risk: Minimal · up to 521f6

The snooze label now shows "1h left" for a one-hour snooze instead of "2h". The change is small and localized, and it is covered by new boundary tests. The remaining risk to merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the primary change: a one-hour snooze no longer shows "2h left", which matches the snoozeWakeLabel fix that counts whole clock minutes with floored times. It follows conventional commi…
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 repository template and covers the problem, the change, scope, and verification. It explains the bug (a one-hour snooze reads "2h left" because the callers pass different n…
Full details: Title check

Explanation

The title names the primary change: a one-hour snooze no longer shows "2h left", which matches the snoozeWakeLabel fix that counts whole clock minutes with floored times. It follows conventional commit style and is specific enough for history scanning.

Full details: Description check

Explanation

The description follows the repository template and covers the problem, the change, scope, and verification. It explains the bug (a one-hour snooze reads "2h left" because the callers pass different now values), the fix (whole clock minutes counted from floored times), and why no issue is linked (a small fix for an obvious bug). Verification is detailed: a red test on main, green tests on the merged head, and a web screenshot from an earlier revision. Two gaps remain. The Scope section does not link a maintainer request or an issue, and it argues that no issue is needed instead. The description also contains a lot of process detail (merge history, bot reviews, agent attribution) that the template does not ask for, but this does not block the check.

Finishing Touches

Generate unit tests (beta)

  • 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: main
  • File: .coderabbit.config.ts
  • Commit: 0b6f482
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bce997dd-16e3-417e-b7e0-db0f5ae66c7f
Commits

Reviewing files that changed from the base of the PR and between 1d6c3bc and 521f63c.

Files selected for processing: 2

  • packages/client-runtime/src/state/threadSettled.ts
  • packages/client-runtime/src/state/threadSnoozed.test.ts

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@maria-rcks
Merge remote-tracking branch 'github/main' into takeover-29787
1d6c3bc
@maria-rcks

maria-rcks commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

Merged current main without rebasing or conflicts. The snooze change remains two files, 19 additions and 6 deletions; no additional source changes were needed. Existing bot reviews have no actionable findings.

Blacksmith verification passed: vp run check:changed github/main (format, lint, knip, seven-package typecheck, 26 snooze tests) and all 63 mobile thread-list tests. In Chrome, choosing "In 1 hour" showed "Snoozed, 1h left" and "1h" in the shelf; Wake now also worked. Native mobile interaction remains unverified.

CI web tests now pass. The remaining Test failure is check-changed.test.ts > lints an Astro component and runs knip when only it changed, with the same expected-task-list mismatch on main's run 41561598417. The aggregate Check fails as a consequence. Left that unrelated failure unchanged.

one-hour snooze agrees in the header and shelf

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions @claude
chore: refresh snooze label branch from main
521f63c
Pick up the unrelated Astro check expectation fix while preserving the existing snooze label contribution unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 14, 2026
@juliusmarminge juliusmarminge mentioned this pull request Nov 14, 2026
fix(clients): a one-hour snooze no longer reads "2h left" #36785
Merged
@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR takeover:ready Takeover done; auto-lands when gates pass labels Nov 14, 2026
@juliusmarminge

juliusmarminge commented Nov 14, 2026

Copy link
Copy Markdown
Member

Thanks for this. It was finished and merged #36785 as 0457241, with your commits kept.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge closed this Nov 14, 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: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.

3 participants

@saphid @maria-rcks @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.