Inbox & Notifications
Receive @mentions, task completion and failure alerts, and BYOK sharing updates in Library Inbox, and control Inbox, Push, and Email delivery.
This page explains how to receive @ mentions, task completion and failure alerts, and BYOK sharing updates in one unified Inbox, and how to configure Inbox, Push, and Email delivery without duplicate interruptions across devices.
Inbox in the web UI
Open your Inbox at Library → Inbox (/spaces/inbox; /inbox redirects to /spaces/inbox).
- Views and unread badge: Switch between All and Unread. Items load newest-first (30 per page) and sync live across open tabs and devices via
inbox.changed. The unread counter caps at99+. - Grouping and merging: Notices with the same group key merge into a single row instead of flooding the list. Mentions are grouped per turn (
mention:<turnId>) or per shared BYOK provider (byok.shared:<providerId>), while task updates (turn.finished) merge per Chat (turn:<sessionId>). When a new update arrives for an existing group, the row moves back to the top as unread, moves the latest actor to the front, and increments its update counter. - Reading and cross-device auto-read:
- Click any item to open its target Chat (or
/settings/byokfor a shared BYOK provider) and mark it read. - Hover an unread item and click Mark as read, or click Mark all as read in the Inbox header.
- Viewing a Chat in an active window automatically marks unread Inbox items for that Chat as read and syncs the read state to your other connected devices.
- Click any item to open its target Chat (or
Notification kinds, channels, and delivery
Cohub delivers two notification kinds across three independent channels (Inbox, Push, and Email). Any channel can be turned on or off independently of the others.
Kind (CLI / API) |
Web UI label | When it fires | Group key | Default channels |
|---|---|---|---|---|
mention |
Mentions | Someone @ mentions you in a prompt or note (up to 20 mentioned users per turn with session.view, never the author), or shares a BYOK subscription with you |
mention:<turnId> or byok.shared:<providerId> |
Inbox: on, Push: on, Email: on |
turn.finished |
Your tasks | A turn you submitted finishes (completed) or fails (failed). Notes never trigger it; completed runs initiated by an agent or automation are skipped, while failed runs still notify |
turn:<sessionId> |
Inbox: off, Push: on, Email: off |
Push delivery and 5-second foreground absorption
- In-app alerts: Open web tabs receive realtime
notification.sentevents and display up to 3 in-app toasts (auto-dismissed after 6 seconds while visible, deduplicated by group). If you are actively viewing the same Chat in an attended window, the alert is absorbed without a toast and marked read if stored in Inbox. - 5-second remote push delay: Remote push waits 5 seconds before sending so an active device can view and absorb the notice first:
- Push is dropped if you turned off
pushfor that kind in the meantime. - For notices stored in Inbox, remote push skips devices currently in the foreground and is dropped altogether if the item was already read or replaced by a newer revision.
- For notices not stored in Inbox (such as
turn.finishedunder default settings), remote push is dropped while any of your devices is active in the foreground.
- Push is dropped if you turned off
- Supported transports: Cohub supports Web Push (browsers and PWAs) and Android FCM (native Android shell). Desktop shells raise local system notifications when in the background (after a 1.5-second check when remote push is not active). iOS APNs push is currently not active; the Inbox still updates live on iOS.
- Target cleanup: Signing out unregisters the device's push target. Push addresses that report gone or fail 10 consecutive deliveries are automatically disabled.
Email digest delivery
- 10-minute batching: Email notices queue into a per-user outbox (newest 200 entries retained for 7 days) and send at most one digest email per 10-minute window, popping up to 20 entries per digest.
- Deduplication and read filtering: Before sending, the digest keeps only the latest entry per notice and drops Inbox items you already read or kinds whose
emailchannel was turned off. - One-click unsubscribe: Every digest includes a signed unsubscribe link (
/settings/notifications?unsubscribe=...) and aList-Unsubscribe-Postheader for mail clients. Unsubscribing turns off Email for all notification kinds; you can turn it back on anytime in Settings → Notifications. - Availability: Email delivery requires both a primary email address on your account and email transport configured on the deployment. When unavailable, the Email column is hidden in Settings → Notifications.
Configure preferences in the web UI and CLI
Web UI (Settings → Notifications)
Open Settings → Notifications (/settings/notifications), or click the Notification settings gear icon in the Inbox header:
- This device: Shows whether push is on, off, blocked by browser permissions, or unsupported on the current device, with Turn on / Turn off controls.
- Channel matrix: Toggle Inbox, Push, and Email per kind (Mentions, Your tasks). Turning on a Push toggle while device push is off prompts to enable push on this device.
CLI (cohub inbox and cohub notifications)
Inspect and clear Inbox items:
cohub inbox # alias for `cohub inbox list`
cohub inbox list --unread --limit 20 # default limit 30, newest first
cohub inbox list --cursor '<cursor>'
cohub inbox read <item-id> # mark one or more item IDs read
cohub inbox read --session <sessionId> # mark every item for one Chat read
cohub inbox read --all # mark everything read
View or update channel preferences per kind:
cohub notifications # alias for `cohub notifications prefs`
cohub notifications prefs --set turn.finished.inbox=on mention.email=off
Pass --json to any cohub inbox or cohub notifications command for JSON output. Valid rule syntax is <kind>.<channel>=on|off, where <kind> is mention or turn.finished and <channel> is inbox, push, or email.
Boundaries and common errors
| Symptom or error | Cause and fix |
|---|---|
| No remote push arrived when a task finished | By default turn.finished is Push-only (not stored in Inbox), and non-Inbox pushes are dropped whenever any of your devices is active in the foreground during the 5-second delay. Enable turn.finished.inbox=on if you want a persistent Inbox record. |
| This device shows Notifications are blocked for this site | Browser notification permission was denied for the Cohub origin. Allow notifications for the site in your browser settings, then select Turn on. |
| Push alerts do not arrive on iOS | iOS APNs push is currently not active; use the web or app Inbox, which still updates live. |
| Email toggles do not appear in Settings → Notifications | Either your account has no primary email address synced, or the deployment has no email transport (EMAIL_URL) configured. |
| Opening an email unsubscribe link shows This unsubscribe link is no longer valid | The signed token is malformed or invalid for this deployment. Adjust Email toggles directly in Settings → Notifications or with cohub notifications prefs --set mention.email=off turn.finished.email=off. |
cohub inbox read fails with Choose exactly one of: ids, --session, --all |
Pass only one target selector per command: explicit item IDs, --session <sessionId>, or --all. |
cohub inbox or cohub notifications returns 403 forbidden inside an automated Agent run |
Inbox and notification preference APIs require a direct user login session and reject Agent execution tokens. Run them from a user-authenticated terminal or the web UI. |
| An Inbox item remains visible after you lose access to a Space or Chat | session.view is checked when the notice is created; existing Inbox rows are not retroactively deleted, and opening the link enforces current access rules. |
Automated or Agent-initiated runs did not send a turn.finished notice |
Successful turns started by an agent or automation do not emit turn.finished (only failed runs notify). Notes also never emit turn.finished. |
A user mentioned with @ received no notification |
Mentions notify at most 20 recipients per turn, exclude the author, and require session.view on that Chat at creation time. |
Next steps
- Chats —
@mention teammates inside prompts and notes, and follow Chat turns - Tasks & Scheduled prompts — understand background runs and failure alerts
- Members, invites & access — how
session.viewdetermines who can receive mention notices - BYOK — subscription sharing notifications governed by Mentions
- CLI — full
cohub inboxandcohub notificationscommand reference