All blocks

Coding agent workspace

Assign work in sessions, review changed files, inspect test failures, and approve a revision.

npx shadcn@latest add checkfu/uicontext/coding-agent-workspace
fieldwork/notificationsReview

Fix duplicate reminders

fix/reminder-retriesRevision 1Needs a fix

Task & activity

  1. MC
    Maya Chen9:12 AM

    Make sure a retry never sends the same reminder twice.

  2. ✦
    Rune9:18 AM

    The send now carries a dedupe key. The retry test still fails because its job ID changes. The diff and test output are ready to review.

  1. Prepared a patch
    Result
    src/reminders/deliver.ts
    test/reminders.test.ts
  2. Ran the test suite
    Result
    PASS Sends a scheduled reminder
    FAIL Uses the same key on retry
    PASS Skips a reminder with a receipt
2 passed · 1 failed

deliver.ts

+2−2
11export async function deliver(job: Reminder) {
2 const key = deliveryKey(job.deliveryId)
2 const key = deliveryKey(job.id)
33 if (await receipts.has(key)) return
44
5 await mail.send(render(job))
5 await mail.send(render(job), { key })
66 await receipts.put(key)
77}

Approve this revision?

Mark revision 1 of Fix duplicate reminders as approved.

New session

Choose a repository and describe the change you want.