Notifications, snooze and caffeine
How Flow notifies you and where each kind goes, Do Not Disturb, snoozing a session until a condition wakes it, and keeping your Mac awake.
On this page
Flow tells you things in two ways. Unread dots on sessions say an agent wants you (a turn finished, a question, a bell); they live in the sidebar, the tab strips and on Dashboard cards. Notifications report everything else: the answer to what you just did, an update, a scheduled run, a message from a script. This page covers notifications, snoozing a session until something happens, and caffeine, which keeps your Mac awake.
Notifications
Every notification has a kind, and each kind has a delivery you choose in Settings › Notifications:
| Delivery | What happens |
|---|---|
| Toast | A card in the stack at the main window's bottom-right, and a record in the history |
| Notification Center | A macOS banner (listed under Script Editor in System Settings › Notifications), and a record in the history |
| History only | Only the record in the history |
| Off | Nothing, not even a record |
Kinds
Each kind is stored as notifications.<id>, with the value toast, system (Notification Center), silent (History only) or off.
| Kind (Settings label) | id | Default | Raised by |
|---|---|---|---|
| Answers to your actions | feedback | Toast | What you just did, done or refused: a link copied, a failed save. Only Toast or Notification Center, and Do Not Disturb never holds it. |
| Agent messages | agent.message | Toast | An agent or script running flow-cli notify |
| Link routing | links | Toast | A link from another app that could not open where it was routed |
| Background pull request operations | pr.ops | Toast | A PR operation the Factory started on its own finishing or failing |
| Snoozed session woke | snooze.wake | Notification Center | A snoozed session waking, while Snooze's notification is on |
| Caffeinate wore off | caffeinate | Toast | Caffeinate ending on its own |
| Scheduled runs | schedules.runs | Toast | A scheduled run starting (Automations on) |
| Schedules Inbox | schedules.inbox | Toast | A run leaving something in the Inbox (Automations on) |
| Schedule failures | schedules.failed | Toast | A run failing or not starting, a worktree left behind, schedules unable to run while Flow is quit (Automations on) |
| Join requests | puddle.pairing | Toast | A device asking to join your puddle (Puddles on) |
| Someone is viewing a session | puddle.viewing | History only | A paired device starting to view a session (Puddles on) |
| Sessions started from another device | puddle.created | Toast | A paired device starting a session on this Mac (Puddles on) |
| Sessions changed from another device | puddle.remote_action | History only | A paired device closing, renaming or pinning a session (Puddles on) |
| An agent needs you on another Mac | puddle.attention | Toast | An agent wanting you on one of your Macs while you use another (Puddles on) |
| Updates | updates | Toast | A new version found by the periodic check, or an automatic install's outcome |
| License | license | Toast | Your license changing on its own |
| Flow services | system | Toast | Flow's command bus going down or coming back |
Do Not Disturb
Do Not Disturb (notifications.dnd, bool, default false) turns every Toast and Notification Center delivery into History only, except Answers to your actions. Turn it on in Settings › Notifications, in the history menu, or with Toggle Do Not Disturb in the palette.
Toasts
Toasts stack at the bottom-right of the main window, newest in front. Hover the stack to fan it out; only then can you click a toast's action button, its ×, or Clear all. Short status toasts ("Copied") disappear after 3 seconds, but not while the pointer is over the stack; notifications that need you stay until you dismiss them. At most 4 toasts are kept; the oldest status toast goes first.
Notification history
Press ⌥⌘N (Notification history) to open the history menu at the window's top-right: unread records first, each with its title, detail, age and (with Puddles) the Mac it came from, then Do Not Disturb, Notification settings… and Clear all. Opening it marks everything read. Clicking a record runs its action if it had one, otherwise copies its text. Clear notifications in the palette clears the history and the toasts.
The history holds up to 200 records and is kept in memory only, so it starts empty on each launch.
Post a notification from a script or agent
flow-cli notify "Tests passed" --detail "412 passed in 38s"
This raises an Agent messages notification, delivered as that kind's setting and Do Not Disturb say. --kind accepts only agent.message, so a script can never pose as one of Flow's own kinds.
Snooze a session
A snoozed session leaves the Sessions list for the Snoozed section at the bottom of the sidebar and wakes by itself when its condition holds: by default it moves to the top of Sessions, turns unread and posts a notification. Use it to park an agent until it needs you, its PR gets a review, or CI finishes.
Snooze from the menu
- Right-click the session (or its Dashboard card) and open Snooze, or press
⇧⌘Z(with the default setting it opens the same menu at the session's row). - Pick when it should wake:
- Favorites (starred conditions; by default 30 minutes and PR approved) and your recent conditions.
- For › a quick duration: 15m, 30m, 1h, 2h, Tomorrow 9am.
- Until › Next message, PR approved, CI passes (CI finishes when it is set to wake on pass or fail), each of your named watches, and Until I wake it.
- Custom… to type a time, a duration or a command.
- In the Wake early if… panel, tick what may wake it sooner (ticked from your defaults), then press Snooze or
↩.
Star any condition in the menu to add it to your favorites. Rows that need a pull request (PR approved, CI) are disabled when the session has none; a watch needs the session to have a directory.
Wake-early items
| Group | Item | Default |
|---|---|---|
| Agent | Claude asks a question | on |
| Agent | Needs permission | on |
| Agent | Errors or crashes | on |
| Agent | Context nearly full | off |
| PR | A new comment | on |
| PR | Approved | on |
| PR | Changes requested | on |
| PR | Reviewed with comments | off |
| PR | You're mentioned | on |
| PR | Merged or closed | off |
| CI | A check fails | on |
| CI | All checks finish | off |
| Watches | Any named watch you add | none |
PR items skip bots, the people in your ignore list and your own activity, and count only what happens after you snoozed. Expand A check fails · N of M checks to choose which CI checks count for this repository; the choice is remembered for later snoozes there.
While it is snoozed
On the Sessions page a banner across the session's primary pane shows the condition, the last watch result and "wakes early on N things", with Change…, Wake now and Edit (change what wakes it early). In the sidebar a snoozed row shows its condition and an amber "N held" count of events that did not wake it. After it wakes, its row wears a "woke" pill until you dismiss the banner.
To wake it yourself: press ⇧⌘Z on it, click Wake now, or use the Snooze row in its menu.
Settings › Snooze
Every snooze.* setting is personal: a team file in a repository can never set one (a checked-in watch would run someone else's command). You can override them per repository in the repository view of Settings › Snooze.
| Row | Key | Default |
|---|---|---|
When I snooze without choosing (used by ⇧⌘Z) | snooze.default | ask (Ask each time); or 30m, unread, pr, ci |
| Favorites | snooze.favs | 30 minutes, PR approved |
| Recent conditions | snooze.recents_n | 3 (0 off, 3, 5) |
| Quick durations | snooze.durations | 15m, 30m, 1h, 2h, Tomorrow 9am |
| Until next message | snooze.trig.unread | on |
| Ignore turns shorter than | snooze.unread_min | 30s (off, 30s, 2m, 5m) |
| Until PR approved | snooze.trig.pr | on |
| Also wake on changes requested | snooze.pr_changes | on |
| Until CI finishes | snooze.trig.ci | on |
| Wake when checks | snooze.ci_mode | pass (or any: pass or fail) |
| Ask what wakes it early each time | snooze.ask_wake | on (off: a pick snoozes at once with the defaults) |
| Wake-early defaults | snooze.ov.question, perm, error, context, comment, approved, changes, reviewed, mention, closed, ci_fail, ci_done; snooze.ov.watches | as in the table above |
| Ignored people and bots | snooze.ignore_authors | none |
Ignored checks (* matches anything) | snooze.ignore_checks | none |
| Chosen checks | snooze.check_picks | none |
| Move to top of Sessions | snooze.wake.top | on |
| Mark as unread | snooze.wake.unread | on |
| System notification | snooze.wake.notify | on |
| Play a sound | snooze.wake.sound | off |
Watches
A watch is a shell command Flow runs in the session's directory on an interval; the session wakes when it exits 0. Named watches live in snooze.watches as a JSON list of {"name", "cmd", "every"} and show in Snooze › Until and in Settings › Snooze.
- The command runs with
sh -c(POSIX sh, no aliases, Flow's PATH), stdin closed and output discarded. everyis a number ands,morh(default30s, never below 5 seconds). Each run is killed after 60 seconds.- Any other exit, or a timeout, means "not yet".
[
{ "name": "PR merged", "cmd": "gh pr view --json state -q .state | grep -qx MERGED", "every": "1m" },
{ "name": "Health", "cmd": "curl -sf -m 10 https://example.com/health >/dev/null", "every": "30s" }
]
Test a watch by hand in the session's directory first: sh -c 'the command'; echo "exit=$?". Don't negate a command that can fail for other reasons with !: it would wake on any error.
Snooze from the command line
flow-cli snooze api-work 2h --wake question,perm,ci-fail
flow-cli snooze api-work woken --wake approved,changes,closed
flow-cli snooze 3 --wake none 'cmd:test -f dist/app.zip'
flow-cli snooze-wake api-work +ci-done -ci-fail
flow-cli wake api-work "Picked it up"
| Spec | Wakes when |
|---|---|
30m, 4pm, tomorrow 9am | That time arrives |
unread | The session's agent sends its next message |
pr | Its PR is approved (also merged or closed) |
ci | Its CI finishes, per snooze.ci_mode |
activity | Someone else comments on or reviews its PR |
ci-fail | The first counted check fails |
watch:NAME | A named watch exits 0 |
cmd:COMMAND | A one-off command exits 0 |
woken | Never by itself (Until I wake it) |
The session is its index or name from flow-cli state. --wake takes comma-separated items (question, perm, error, context, comment, approved, changes, reviewed, mention, closed, ci-fail, ci-done, watch:NAME), none or default; the CLI never changes your defaults. A session with no PR refuses pr, ci, activity and ci-fail.
A session group sleeps and wakes as one.
Keep your Mac awake
Caffeinate keeps your Mac (and, by default, its display) from sleeping: indefinitely, for a duration, or until a time. It is handy while agents work unattended.
Start and stop it
-
In the palette, run Caffeinate (indefinitely), Caffeinate for… or Caffeinate until…, then pick a preset or type your own. Decaffeinate stops it.
-
Or type straight at the palette's root:
caffeinate 90m,awake 2h,coffee until 6pmshows a card; press↩. -
Or use the coffee cup in the menu bar: Decaffeinate, Caffeinate › Indefinitely, 10 Minutes, 30 Minutes, 1 Hour, 2 Hours, 4 Hours, 8 Hours, 12 Hours, Custom…, then Keep display on and Hide from menu bar.
-
Or from a terminal:
shflow-cli caffeinate on # indefinitely flow-cli caffeinate 90m # a duration, at most 48h flow-cli caffeinate until 6pm # or "until tomorrow 9am" flow-cli caffeinate off
Durations accept forms like 45m, 1.5h, 1:30, half an hour (a bare number is minutes), up to 48 hours. Times accept 6pm, 18:00, tomorrow 9am, eod (6 PM), noon and midnight. The for presets are 15 minutes to 12 hours; the until presets are End of day, Midnight, Tomorrow morning and Lunch.
Settings
| Setting | Key | Default |
|---|---|---|
| Keep display awake | caffeine.display | on (changing it while caffeinated changes the running one too) |
| Caffeine in menu bar | caffeine.menu_bar | on |
| Countdown beside the cup | caffeine.menu_bar_timer | on |
Toggle the first two with the palette actions Keep display awake and Caffeine in menu bar; Caffeinate status shows the cup and opens its menu.
A run survives relaunching Flow (an expired one is cleared quietly). Quitting Flow lets the Mac sleep again. While the license screen is up, caffeine is paused and resumes after activation. When a run ends on its own you get a Caffeinate wore off notification.
Sources
Written from these files in the Flow app repo
src/notifications.rssrc/notifications_ui.rssrc/toast_ui.rssrc/snooze.rssrc/snooze_app.rssrc/snooze_settings.rssrc/snooze_ui.rsagent-skills/snooze/SKILL.mdsrc/caffeine.rssrc/caffeine_app.rssrc/pages.rssrc/bus.rssrc/sidebar_ui.rs