Snooze a break to bring it back a little later #88
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
marcoieni
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
- 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".
bradipo://snooze-breakdoes 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).How a snooze behaves:
How it's built
BreakTimerrewinds 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.-
isSnoozedonly labels the countdown. It's cleared wherever the work countdown starts over or a break starts.-
snoozeLengthismin(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.
StatusTextgives the snooze item's title and subtitle and the "snoozed" tooltip, so they're tested with the rest of the menu text.RemoteCommandmapssnooze-breakto the samesnoozeBreak()handler the menu and the VoiceOver action use, and allows it only whilecanSnooze.snoozeBreaksEnabled(off) andsnoozeSeconds(120), read like the long-break ones.Known limits
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.snooze-breakduring the snooze did nothing, and the short break came back at its full 0:20 after 20.06 s.bradipo://snooze-breakchanged nothing.bradipo · Long break snoozedandbradipo, 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:
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.