Skip to content
flow

WorkspaceNotifications, snooze and caffeine

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.

View as Markdown
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:

DeliveryWhat happens
ToastA card in the stack at the main window's bottom-right, and a record in the history
Notification CenterA macOS banner (listed under Script Editor in System Settings › Notifications), and a record in the history
History onlyOnly the record in the history
OffNothing, 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)idDefaultRaised by
Answers to your actionsfeedbackToastWhat 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 messagesagent.messageToastAn agent or script running flow-cli notify
Link routinglinksToastA link from another app that could not open where it was routed
Background pull request operationspr.opsToastA PR operation the Factory started on its own finishing or failing
Snoozed session wokesnooze.wakeNotification CenterA snoozed session waking, while Snooze's notification is on
Caffeinate wore offcaffeinateToastCaffeinate ending on its own
Scheduled runsschedules.runsToastA scheduled run starting (Automations on)
Schedules Inboxschedules.inboxToastA run leaving something in the Inbox (Automations on)
Schedule failuresschedules.failedToastA run failing or not starting, a worktree left behind, schedules unable to run while Flow is quit (Automations on)
Join requestspuddle.pairingToastA device asking to join your puddle (Puddles on)
Someone is viewing a sessionpuddle.viewingHistory onlyA paired device starting to view a session (Puddles on)
Sessions started from another devicepuddle.createdToastA paired device starting a session on this Mac (Puddles on)
Sessions changed from another devicepuddle.remote_actionHistory onlyA paired device closing, renaming or pinning a session (Puddles on)
An agent needs you on another Macpuddle.attentionToastAn agent wanting you on one of your Macs while you use another (Puddles on)
UpdatesupdatesToastA new version found by the periodic check, or an automatic install's outcome
LicenselicenseToastYour license changing on its own
Flow servicessystemToastFlow'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

sh
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

  1. 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).
  2. 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.
  3. 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

GroupItemDefault
AgentClaude asks a questionon
AgentNeeds permissionon
AgentErrors or crasheson
AgentContext nearly fulloff
PRA new commenton
PRApprovedon
PRChanges requestedon
PRReviewed with commentsoff
PRYou're mentionedon
PRMerged or closedoff
CIA check failson
CIAll checks finishoff
WatchesAny named watch you addnone

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.

RowKeyDefault
When I snooze without choosing (used by ⇧⌘Z)snooze.defaultask (Ask each time); or 30m, unread, pr, ci
Favoritessnooze.favs30 minutes, PR approved
Recent conditionssnooze.recents_n3 (0 off, 3, 5)
Quick durationssnooze.durations15m, 30m, 1h, 2h, Tomorrow 9am
Until next messagesnooze.trig.unreadon
Ignore turns shorter thansnooze.unread_min30s (off, 30s, 2m, 5m)
Until PR approvedsnooze.trig.pron
Also wake on changes requestedsnooze.pr_changeson
Until CI finishessnooze.trig.cion
Wake when checkssnooze.ci_modepass (or any: pass or fail)
Ask what wakes it early each timesnooze.ask_wakeon (off: a pick snoozes at once with the defaults)
Wake-early defaultssnooze.ov.question, perm, error, context, comment, approved, changes, reviewed, mention, closed, ci_fail, ci_done; snooze.ov.watchesas in the table above
Ignored people and botssnooze.ignore_authorsnone
Ignored checks (* matches anything)snooze.ignore_checksnone
Chosen checkssnooze.check_picksnone
Move to top of Sessionssnooze.wake.topon
Mark as unreadsnooze.wake.unreadon
System notificationsnooze.wake.notifyon
Play a soundsnooze.wake.soundoff

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.
  • every is a number and s, m or h (default 30s, never below 5 seconds). Each run is killed after 60 seconds.
  • Any other exit, or a timeout, means "not yet".
json
[
  { "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

sh
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"
SpecWakes when
30m, 4pm, tomorrow 9amThat time arrives
unreadThe session's agent sends its next message
prIts PR is approved (also merged or closed)
ciIts CI finishes, per snooze.ci_mode
activitySomeone else comments on or reviews its PR
ci-failThe first counted check fails
watch:NAMEA named watch exits 0
cmd:COMMANDA one-off command exits 0
wokenNever 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 6pm shows 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:

    sh
    flow-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

SettingKeyDefault
Keep display awakecaffeine.displayon (changing it while caffeinated changes the running one too)
Caffeine in menu barcaffeine.menu_baron
Countdown beside the cupcaffeine.menu_bar_timeron

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.rs
  • src/notifications_ui.rs
  • src/toast_ui.rs
  • src/snooze.rs
  • src/snooze_app.rs
  • src/snooze_settings.rs
  • src/snooze_ui.rs
  • agent-skills/snooze/SKILL.md
  • src/caffeine.rs
  • src/caffeine_app.rs
  • src/pages.rs
  • src/bus.rs
  • src/sidebar_ui.rs