Make daily support calmer and add Take a moment - #2006
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 508d3b9cc1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "A moment to check what you need: perhaps some water, a little quiet or a rest. Choose what suits you.", | ||
| "You don’t need to resolve everything today. There is room for a small pause.", | ||
| } | ||
| index := int(time.Date(day.Year(), day.Month(), day.Day(), 0, 0, 0, 0, time.UTC).Unix()/86400) % len(messages) |
There was a problem hiding this comment.
Rotate messages across weekly occurrences
When the user selects the weekly frequency, each occurrence advances by exactly seven calendar days, while this index is epochDay % 7; its value therefore never changes and that user receives the same invitation forever. Use a week/occurrence-based index for weekly schedules so all seven messages can rotate.
Useful? React with 👍 / 👎.
Micro's instructions focused on tools and productivity, while check-ins turned immediately into an agenda. This gives the assistant a shared purpose: help people carry less and make room for what matters.
Ground interactive and scheduled prompts in Islamic values and ACT principles expressed through ordinary behaviour, without unsolicited religious or therapy language. Keep dignity independent of achievement, avoid forced positivity and automatic planning, and respect user agency. Daily Checkin now asks “What’s on your mind?” without loading calendar commitments. Morning briefs emphasise useful orientation; evening readings default to 350–600 words with perspective, sources and no homework, while respecting requests for depth.
Add optional Take a moment under Agents → Scheduled, defaulting to 14:00 in the user's timezone. Reuse the durable scheduling and delivery paths, with daily/weekday/weekly frequency and disable controls. Seven short, accessible invitations rotate without model calls or an expected reply. Reminders are account-scoped, skip stale occurrences, and show the invitation in push notifications. No users are automatically enrolled. Update landing copy and use the shared card grid without stretching settings cards.
Validation: short tests passed for agent, agent/brief, work, mail, flag and server; full Go build and formatting passed. Regression tests cover opt-in scheduling, persistence, ownership, invalid inputs, paused/stale revisions, missed reminders, CSRF, deterministic delivery and shared prompt coverage. Local Playwright checks passed at 390px and 1440px: real enable/disable form submissions, timezone/time defaults, no horizontal overflow or JS errors. Inspected screenshots of Scheduled, empty/populated conversation, login and signup. No shared CSS/JS changes. Production delivery and live model tone have not been verified.