GeezerVison is showing github.com — fix(clients): a one-hour snooze no longer reads "2h left" by juliusmarminge · Pull Request #36785 · pingdotgg/t3code
Conversation
No items needed a change. All 36 checks on PR #36785 pass at 158dab8. Macroscope approved it with no comments on lines. CodeRabbit's review says 'No actionable comments were generated' and rates the merge risk Minimal. The fix itself is unchanged: snoozeWakeLabel counts whole clock minutes (floor(wake/min) - floor(now/min), at least 1) before choosing minutes, hours or days. Retained seconds therefore no longer push a one-hour snooze up to '2h' when now is cut to the minute.
Supersedes #29787. The change is @saphid's; their commits are kept.
Reproduction on main
Reproduced on main at cebdf39:
- Started the dev server on main with a fresh database and opened the web client. 2. Started a Replay 'showcase' turn in the default project, then pressed Stop so the thread was idle. 3. With that thread open, opened the header's Thread actions menu and picked Snooze → 'In 1 hour (3:47 PM)'. I clicked at 14:47:30 UTC, half a minute into the minute; the stored snoozedUntil was 2026-11-14T15:47:30.080Z, seconds kept. 4. Right away, before the minute changed, the header line under the conversation read 'Snoozed, 2h left · Wake now', while the same thread's row in the sidebar's Snoozed shelf read '60m'. 5. After the clock passed 14:48:00 UTC, the header read 'Snoozed, 60m left' and the shelf still read '60m'. A one-hour snooze was labelled 2h for its first ~30 seconds, and the header and shelf disagreed. Cause: the header passes a minute-floored now (14:47:00) to snoozeWakeLabel, giving 60.5 minutes remaining, which ceils to 2h; the shelf passes live time and gets just under 60m.
Evidence
Web, Chromium, 1280×800, light theme; fresh synthetic database per revision. Create a Replay showcase thread, let it finish, open Thread actions → Snooze → In 1 hour about 20 seconds into a minute. Capture immediately and after the next minute boundary.
Proven: scenarios:prove exited 0, failing on base and passing on head.
Scenario source
Base failed the expected next-minute '59m left' assertion; head passed and also satisfied the initial '1h left' assertion.
Not shown:
- Mobile list and native desktop shell were not exercised; this proof covers the web header and snoozed shelf.
- Replay completed naturally instead of pressing Stop; both revisions snoozed an idle thread.
Tests
No new local runs this round; the code is unchanged. CI on 158dab8: all 36 checks passed. Earlier, on this head: vp test run packages/client-runtime/src/state/threadSnoozed.test.ts passed (36 tests), vp run check:changed passed, and the new test fails against main's code.
Not in this change
- CodeRabbit's description check notes the empty before/after 'Evidence' section in the PR description; that is for the pipeline's proof step, not a code change.
Who did the work
- Written by Claude Opus 5.5, in Claude Code
- Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
- Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5
Run by the t3code factory in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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]>
Approvability
Verdict: Approved at 158dab8
Macroscope's review found this PR approvable — Snooze countdown labels now use clock-minute rounding so a one-hour snooze does not appear as two hours. The change affects display text only, not snooze timing or wake behavior.
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
Nov 14, 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
-
Snooze wake labels now use floored minute differences, with minute, hour, and day rounding bands and "now" for expired wake times. Tests cover countdown labels at several intervals.
Changes: Snooze wake labels
| Layer / File(s) |
Summary |
Countdown calculation and tests packages/client-runtime/src/state/threadSettled.ts, packages/client-runtime/src/state/threadSnoozed.test.ts |
snoozeWakeLabel displays minutes below 60, ceiling-rounded hours below 24 hours, and ceiling-rounded days thereafter. Expired wake times display "now". Tests cover these labels at several intervals. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: t3dotgg, maria-rcks
Merge Risk: Minimal · up to 158da
-
This fixes a one-hour snooze briefly showing as "2h" when the two clients compute the label from slightly different clocks. The change is small and covered by tests, so merge risk is minimal.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the bug fixed (a one-hour snooze showing "2h left") and matches the main change in threadSettled.ts, which counts whole clock minutes before choosing minutes, hours, or days. It is spe… |
| 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 is thorough and covers the problem (a one-hour snooze briefly labelled '2h' because the header floors now to the minute), the change (count whole clock minutes before choosing minutes,… |
Full details: Title check
-
Explanation
The title names the bug fixed (a one-hour snooze showing "2h left") and matches the main change in threadSettled.ts, which counts whole clock minutes before choosing minutes, hours, or days. It is specific and the scope is clear.
Full details: Description check
-
Explanation
The description is thorough and covers the problem (a one-hour snooze briefly labelled '2h' because the header floors now to the minute), the change (count whole clock minutes before choosing minutes, hours, or days), scope (links superseded #29787 and reproduction on main), and verification (reproduction steps, web evidence with before/after captures, and test runs). The template's Problem, Change, Scope, and Verification sections are all present. Minor gaps: the 'Scope' section does not explicitly justify the change against the bug-fix-only policy beyond the reproduction, and the template's trailing agent-model line is present. The description is mostly complete, so the check passes.
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
-
Commits
-
Reviewing files that changed from the base of the PR and between 4747472 and 158dab8.
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; 5 remain after this review.
|
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.
rynfar
added a commit
to rynfar/t3code
that referenced
this pull request
Nov 20, 2026
…ltas (#453)
* feat(native): port #444 Part B Sidebar, Thread & Transcript parity deltas
Port all remaining Sidebar, Thread View, and Transcript parity deltas from upstream `4121b30..80cf4f7` and flip `TV-LINEAGE` and `TR-WORK` to `done` in `apps/native/parity/LEDGER.md`.
Sidebar (`SB-ROW`, `SB-SECTIONS`, `SB-MENU`, `SB-UNDO`, `SB-SEARCH`, `SB-GROUPING`):
- Regenerating title glimmer (`pingdotgg#29383`)
- Settle-undo position restore via `plan_undo_for_thread` + `UnsettleRestore`/`ReorderActive` (`pingdotgg#33248`)
- Clear opened failed badge in sidebar rows and collapsed folder dots (`pingdotgg#28616`)
- Suppress `Done` badge for stopped/interrupted/cancelled runs (`pingdotgg#37475`)
- 1h snooze clock-minute rounding (`pingdotgg#36785`)
- Opening a delegated task selects its listed parent ancestor (`pingdotgg#37500`)
- Side-chat children included in worktree deletion check (`pingdotgg#36800`)
- Failed message search error state in sidebar search and command palette (`pingdotgg#38155`)
- Jump-hint modifier recheck after hold delay (`pingdotgg#38545`)
- Command palette `Failed` status pill prioritized over background `Waiting` (`pingdotgg#38968`)
Thread & Transcript (`TV-HISTORY`, `TV-LINEAGE`, `TV-FOLLOW`, `TR-WORK`, `TR-MARKDOWN`, `TR-CITE`, `TR-MCPAPP`):
- Subagent history model preservation via `merge_older_subagents` (`pingdotgg#38724`) and hide Resume when `supportsNativeResume` is false without an unsent continuation source (`pingdotgg#39229`)
- Cancel active smooth scroll in `keep_end` so finished-while-away threads open at end (`pingdotgg#38963`)
- MCP PR/CI work-log rows & summaries (`pingdotgg#26751`, `pingdotgg#26752`) and Windows `pwsh`/`powershell`/`cmd` launcher unwrapping (`pingdotgg#38946`)
- Leading-space user markdown preservation (`pingdotgg#38079`), RTL `<details>` and template cards (`pingdotgg#36876`, `pingdotgg#36922`), `Cite` on `send_to_user` rows (`pingdotgg#36858`), home/host paths out of workspace folder (`pingdotgg#39146`), and code/list/email copy serialization fixes (`pingdotgg#36712`, `pingdotgg#36830`, `pingdotgg#36867`, `pingdotgg#36915`, `pingdotgg#37284`, `pingdotgg#39150`)
- MCP app content-block filtering for stripped images (`pingdotgg#31338`), teardown generation race test (`pingdotgg#30387`), and pre-query/fragment download filename derivation (`pingdotgg#30712`)
* fix(native): address PR #453 review findings
Address all 3 review findings from `@d1-reviewer` (`pingdotgg#847`):
1. Remove unwired DOM-HTML Markdown re-serialization helpers (`wrap_inline_code`, `serialize_markdown_anchor`, `escape_markdown_prose`, `ListCopyItem`, `serialize_list_slice`) from `crates/core/src/markdown/clipboard.rs` and update `TR-MARKDOWN` in `apps/native/parity/LEDGER.md` accurately.
2. Add `restore_preserved_leading_whitespace` and wire `user_markdown_view` with a `Copy` (`Cmd+C`) action interceptor (`crates/app/src/transcript/markdown.rs`, `messages.rs`) so user-message Copy and Cite restore ASCII spaces/tabs while preserving literal user-typed NBSPs (`pingdotgg#38079`), verified by GPUI test `user_markdown_copy_restores_leading_spaces_and_preserves_literal_nbsp`.
3. Fetch omitted family side chats via `fetch_family_side_chats` alongside `ORCHESTRATION_GET_WORKTREE_THREAD_IDS` in `delete_thread_then` (`crates/app/src/sidebar/controller.rs`, `pingdotgg#36800`) before calling `has_other_worktree_occupants`, verified by GPUI test `worktree_cleanup_prompt_excludes_omitted_family_side_chats` (and fixed `late_teardown_does_not_close_replacement_host` under `--features snapshot` in `transcript/mcp_app.rs`).
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.
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.
|