← Back to Pull requests

Snooze a break to bring it back a little later #88

Closed
unknown closed this pull request without merging on Nov 29, 2026 10:19 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 09:28 UTC
Author

Closes #29.

Snooze a break to have it come back a little later, instead of stopping it. Stopping a break counts it toward the cycle, so stopping a long break you didn't have time for means waiting a whole cycle for the next one. A snoozed break isn't counted: once the snooze length has gone by, a break of the same kind starts at its full length.

What's new


  • Settings → Rhythm has a new box:

  • - Snooze breaks (off by default): "Snoozing a break from the menu doesn't count it. A break of the same kind comes after the snooze length."
    - Snooze length, greyed out while snoozes are off: presets 20 sec, 1, 2 (default), 5 and 10 min, or Custom up to 99:59, like the other lengths. The toggle turns snoozing off; there's no length of zero.
    - Search finds both by "snooze", "postpone", "delay" or "later".
  • The status menu, during a break while snoozes are on, shows Snooze Short Break or Snooze Long Break right after Stop Short Break / Stop Long Break, with a subtitle saying when the break comes: Back in 2 min. It's there for glow-only breaks too.

  • During a snooze, the countdown runs down to the snoozed break, and the tooltip and VoiceOver say Short break snoozed or Long break snoozed in place of Work interval.

  • bradipo://snooze-break does the same from other apps. Like the other links, it takes no parameters and does nothing when the menu doesn't offer it (not during a break, or with snoozes off).

  • VoiceOver: the banner offers a Snooze for 2 minutes action while snoozing is possible. The banner's look and click behaviour are unchanged: a click still ends the break.

  • README: the snooze paragraph, the two Rhythm rows, and the new link.
  • How a snooze behaves:

  • The same kind of break comes back at its full length. That includes a long break started with Take a Long Break while a short one was next. You can snooze as often as you like, and the cycle doesn't drift.

  • It comes back like a break that comes due: a meeting holds it, the start sound plays if it's on, and VoiceOver announces it. Snoozing itself plays no sound and isn't announced, like stopping a break.

  • Pausing reminders holds the snooze. The break action (Take a Short Break / Take a Long Break) starts the break at once.

  • Time away, the end of working hours, Restart Timer or a change to the work interval end the snooze and start a fresh work interval, with the snoozed kind still next. A snoozed long break is next like any other, so time away of at least its length counts as the long break (#87) and starts a new cycle. Relaunching forgets the snooze.

  • A snooze lasts no longer than the work interval, so the menu-bar countdown keeps its width. The menu and VoiceOver say the capped length.

  • During a break outside working hours (one you start yourself, or one still running when they end), the subtitle says Waits for working hours and the VoiceOver action Snooze until working hours: the next break comes a full work interval after the hours begin.

  • A click that lands just after the break ran out, before the timer's tick, finishes the break normally instead of snoozing it.
  • How it's built


  • BreakTimer rewinds the cycle count. Starting a break counts it, and a long break starts a new cycle. snoozeBreak(at:) ends the break and undoes that count: after a long break, every short break of the cycle counts as taken again, so the long break is next; after a short break, one fewer short break is taken. The work countdown then runs for the snooze length. So no pending break is stored, and everything that already holds or resets the work countdown (pauses, meetings, time away, working hours, Restart Timer) applies to a snooze too.

  • - isSnoozed only labels the countdown. It's cleared wherever the work countdown starts over or a break starts.
    - snoozeLength is min(snoozeDuration, workDuration), or nil outside working hours, where a snooze starts no countdown.
    - While long breaks are off, the count isn't touched, so a long break snoozed after they were turned off comes back short.
  • StatusText gives the snooze item's title and subtitle and the "snoozed" tooltip, so they're tested with the rest of the menu text.

  • RemoteCommand maps snooze-break to the same snoozeBreak() handler the menu and the VoiceOver action use, and allows it only while canSnooze.

  • New settings keys: snoozeBreaksEnabled (off) and snoozeSeconds (120), read like the long-break ones.
  • Known limits


  • Changing Short breaks before a long break during a break or a snooze can change which kind comes next, as it already can when a long break is next. The README says so.

  • After snoozing a long break started by hand, the break action's subtitle says All 3 short breaks taken, even if fewer were. The count says the long break is next, and telling the two apart would need the extra state this design avoids.

  • The returning break is a new break, so the banner can show another of your phrases.

  • Snoozed in the last minutes of working hours, the subtitle still says Back in 2 min, but the end of the hours drops the snooze. The plain work countdown makes the same promise near the end of the hours.

  • While reminders are paused during a snooze, the tooltip says why they're paused rather than that a break is snoozed, as it does for Work interval.

  • Snooze the cycle's last short break and then stay away for an hour, and that short break is still next, with the long break after it: with a short break next, time away of any length keeps your place (#87). Stopping that break instead, or locking the screen during it, counts it, so the hour then counts as the long break. A test pins the current behaviour.
  • How I checked it


    I ran a copy of the built app under its own bundle ID, so it had its own settings, and sent it bradipo:// links. A temporary in-app hook that isn't in the branch logged the tooltip, the VoiceOver label and the menu on every render, closed the menu after each capture, and forced light or dark appearance for the Settings captures.

  • Long break: with a 20 s snooze, the tooltip said Long break snoozed from 0:20, no break came during the snooze, and a long break started at its full 1:00 20.1 s later and ran its full length. With a 2 min snooze, it came back 120.1 s later.

  • Short break: snoozing it said Short break snoozed and didn't count it: the count of short breaks left went back to 3. A second snooze-break during the snooze did nothing, and the short break came back at its full 0:20 after 20.06 s.

  • While working, bradipo://snooze-break changed nothing.

  • Outside working hours, a long break started by link offered Snooze Long Break · Waits for working hours. Snoozing it left the long break next, and the countdown waited at the full work interval behind Outside working hours · Back tomorrow at 9:00.

  • Tooltip and VoiceOver text, read in the app: bradipo · Long break snoozed and bradipo, Long break snoozed, 2 minutes remaining, and the same for a short break.
  • The timing runs above used the branch before it was rebased onto main. The rebases changed the case of the menu titles and brought in #87's long absences, which unit tests cover for snoozes. The menu screenshots are from a rebased commit with the same menus.

    Not checked:

  • The tooltip on screen: it needs the pointer to hover over the countdown, and I couldn't move the pointer on this shared Mac.

  • VoiceOver itself: I read the label and the action's name in the app.

  • Sounds: I didn't listen for them.

  • Settings in focus: the Settings window never took focus, so the switches and the sidebar have the inactive look in the screenshots.
  • Screenshots


    The break banner looks the same as before, so it isn't shown.

    <img src="https://github.com/marcoienibot/bradipo/releases/download/review-media-snooze-breaks/menu-break-snooze.png" alt="bradipo's menu during a long break: Pause Reminders (greyed out), Stop Long Break with the subtitle Next cycle · 3 short breaks, Snooze Long Break with the subtitle Back in 2 min, Restart Timer, Settings… and Quit bradipo" width="250">

    The menu during a long break with snoozes on.

    <img src="https://github.com/marcoienibot/bradipo/releases/download/review-media-snooze-breaks/menu-snoozed.png" alt="bradipo's menu while the long break is snoozed: Pause Reminders, Take a Long Break with the subtitle All 3 short breaks taken, Restart Timer, Settings… and Quit bradipo. There's no snooze item." width="250">

    The menu during the snooze, with the long break next. It was started by hand on a fresh cycle, so its subtitle shows the miscount described under Known limits.

    <img src="https://github.com/marcoienibot/bradipo/releases/download/review-media-snooze-breaks/menu-break-outside-hours.png" alt="bradipo's menu during a long break started by hand outside working hours: Stop Long Break, then Snooze Long Break with the subtitle Waits for working hours" width="250">

    During a break outside working hours.

    <img src="https://github.com/marcoienibot/bradipo/releases/download/review-media-snooze-breaks/settings-snooze-on-light.png" alt="bradipo Settings, Rhythm section in light appearance. Below Work interval, Short break length and the long-break box, a new box has Snooze breaks switched on, with the note: Snoozing a break from the menu doesn't count it. A break of the same kind comes after the snooze length. Below it, Snooze length is 2 min." width="640">

    The new box in Rhythm, snoozes on.

    <img src="https://github.com/marcoienibot/bradipo/releases/download/review-media-snooze-breaks/settings-snooze-off-light.png" alt="The same Rhythm section in light appearance with Snooze breaks switched off and Snooze length greyed out" width="640">

    Snoozes off: Snooze length is greyed out.

    <img src="https://github.com/marcoienibot/bradipo/releases/download/review-media-snooze-breaks/settings-snooze-on-dark.png" alt="The Rhythm section in dark appearance with Snooze breaks switched on and Snooze length at 2 min" width="640">

    <img src="https://github.com/marcoienibot/bradipo/releases/download/review-media-snooze-breaks/settings-snooze-off-dark.png" alt="The Rhythm section in dark appearance with Snooze breaks switched off and Snooze length greyed out" width="640">

    In dark appearance.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: marcoieni Review duration: 51m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #88"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%