Cody integrates with the Windows notification system via Electron’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/miu-ll/Cody-assistant/llms.txt
Use this file to discover all available pages before exploring further.
Notification API to deliver timely, native pop-up reminders for both tasks and meetings. Reminders are scheduled in advance, survive app restarts within the same session, and are automatically suppressed when Focus Mode is active — keeping you in the zone when you need it most.
The Reminder Interface
Every reminder Cody schedules is represented as aReminder object:
Both
title and body are sanitized by cleanText() before being passed to the OS. Control characters are stripped, whitespace is collapsed, and the string is clamped to 240 characters. Inputs that exceed this limit are truncated silently.Scheduling and Cancelling Reminders
Thedesktop bridge exposed to the renderer provides two methods for working with reminders:
scheduleReminder returns true if the timer was registered successfully and false if the scheduled time is already in the past. cancelReminder clears the timer and removes the reminder from the internal map, returning true in all cases.
Large-Delay Timer Splitting
JavaScript’ssetTimeout has a maximum value of approximately 2,147,483,647 ms (≈ 24.8 days). For reminders scheduled further in the future — such as the “1 day before” reminder for a meeting booked weeks out — Cody uses the constant:
at time exceeds MAX_TIMEOUT, Cody sets a timer for exactly MAX_TIMEOUT ms. When that timer fires, it re-evaluates the remaining delay and schedules the next leg. This chaining continues until the final timer fires the actual notification, ensuring no long-range reminder is silently lost.
Staggered Meeting Reminders
Meetings receive four notifications, each giving you progressively shorter lead time to prepare or join:| Notification | Timing | Purpose |
|---|---|---|
| Day-before alert | 24 hours before startsAt | Block preparation time on your calendar |
| One-hour warning | 60 minutes before startsAt | Finish current work, gather materials |
| 15-minute heads-up | 15 minutes before startsAt | Wrap up and navigate to meeting or link |
| Start alert | At exact startsAt | Meeting is beginning now |
joinUrl (a Microsoft Teams link extracted from the Outlook calendar item body), all four notifications include a “Join Teams” action button rendered directly in the Windows toast notification. Clicking it opens the meeting link in the default browser without opening Cody.
Task Reminders
For tasks with adueAt date, Cody schedules a single reminder a configurable number of minutes before the deadline. This is controlled by the reminderMinutes field in AppSettings:
30 means a task due at 3:00 PM will trigger a notification at 2:30 PM. You can adjust this in Settings → Reminders.
Focus Mode Suppression
When Focus Mode is active, Cody suppresses all task reminders to keep you uninterrupted. Meeting reminders are always delivered in
focus mode. In dnd (Do Not Disturb) mode, all reminders including meetings are suppressed. When Focus Mode ends, Cody shows a summary notification telling you how many notifications were silenced.scheduleReminder checks focusState at the moment a timer fires:
Preload API Reference
The full reminder API available in the renderer:id, missing title, or an invalid at timestamp are rejected and return false.