Skip to content

feat: add three-hour snooze option - #5914

Merged
juliusmarminge merged 1 commit into
pingdotgg:mainfrom
Noojuno:t3code/add-three-hour-snooze
Aug 10, 2026
Merged

feat: add three-hour snooze option#5914
juliusmarminge merged 1 commit into
pingdotgg:mainfrom
Noojuno:t3code/add-three-hour-snooze

Conversation

@Noojuno

@Noojuno Noojuno commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Users currently have to choose between snoozing for one hour and longer calendar-based presets.

This adds an In 3 hours preset to the shared snooze model, making it available consistently in web, desktop, and mobile menus. It also extends the shared and web preset tests to cover the new duration and menu ordering.

Testing

  • vp test run packages/client-runtime/src/state/threadSnoozed.test.ts apps/web/src/components/Sidebar.snooze.test.ts apps/mobile/src/features/threads/threadListV2.test.ts apps/web/src/components/threadActionMenu.logic.test.ts
  • Targeted typechecks for @t3tools/client-runtime, @t3tools/web, and @t3tools/mobile
  • React Doctor: 100/100

Created with GPT-5.6-sol via the Codex harness in T3 Code.


Note

Low Risk
Small, data-driven addition to shared snooze presets with test coverage only; no auth, persistence, or snooze eligibility logic changes.

Overview
Adds an In 3 hours snooze choice between the existing one-hour and calendar presets so users can defer threads without jumping straight to “this evening” or longer.

The shared resolveSnoozePresets in client-runtime now exposes a three-hours preset (SnoozePresetId, label, whenLabel, and ISO snoozedUntil at now + 3h). Web, desktop, and mobile pick it up through the existing shared preset list; only tests and the shared resolver change in this diff.

Preset ordering and “drop evening when too late” behavior are updated in tests so three-hours stays after hour even when evening is omitted.

Reviewed by Cursor Bugbot for commit de01e5a. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Add three-hour snooze preset to snooze options

Adds a new three-hours preset to resolveSnoozePresets in threadSettled.ts, setting snoozedUntil to now +3 hours with the label "In 3 hours". The SnoozePresetId union type is extended to include 'three-hours'. The preset is always included, unlike evening which is omitted when within one hour of evening time.

Macroscope summarized de01e5a.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f14f3686-2000-4367-9d04-37ba603ea619

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 9, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit de01e5a. Configure here.

Comment thread packages/client-runtime/src/state/threadSettled.ts
@macroscopeapp

macroscopeapp Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

This PR introduces a new user-facing snooze option. An unresolved review comment identifies a logic issue where the three-hour and evening presets can produce overlapping or confusingly ordered wake times in mid-afternoon windows, warranting human attention.

You can customize Macroscope's approvability policy. Learn more.

@juliusmarminge
juliusmarminge merged commit 9afef94 into pingdotgg:main Aug 10, 2026
17 checks passed
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants