Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Start a thread (any provider; I used
Replay (dev)undervp run dev). - Settings → Scheduled tasks → New task. Destination: One thread, continuing the conversation, destination thread: the thread from step 1. Schedule: On webhook. Save.
- Snooze the thread from its sidebar menu (Snooze → In 3 hours). It moves under Snoozed.
- Call the task's webhook:
curl -X POST http://127.0.0.1:<port>/api/hooks/<taskId>/<token> -H 'content-type: application/json' -d '{"deploy":"ok"}'(202 accepted).
Expected behavior
The task runs in the thread and the thread stays snoozed until its wake time. The docs (Thread sidebar → Snooze until later) say a snoozed thread keeps working and comes back early only for an approval, a new question, a failed run, or a message or answer you send.
Actual behavior
The task runs, and the thread is un-snoozed: it jumps back into the active list and the Snoozed shelf empties. Every webhook delivery does this, so a thread fed by a webhook can't stay snoozed. A cron or one-time task bound to a thread does the same.
Root cause: message.dispatch in Orchestrator.ts ends a snooze unless the message is automatic, which it defines as having notification or delegatedCompletion. Scheduled-task messages carry scheduledTaskId instead (and are sent as createdBy: "user" for the task creator), so they count as a message the user sent and clear snoozedUntil.
Impact
Minor bug or occasional failure
Version or commit
Nightly v0.1.10-nightly.20261114.4682; same code on main at 7bc474667d.
Environment
macOS, web client from vp run dev, Replay (dev) provider.
Logs or stack traces
POST /api/hooks/scheduled-task%3A…/… → 202 {"deliveryId":"delivery:…"}
thread before: snoozedUntil = now + 3h
thread after: snoozedUntil = null (thread.unsnoozed emitted by the scheduled-task message.dispatch)
Screenshots, recordings, or supporting files
Before the webhook: thread under Snoozed. After one webhook: thread back in the active list, Snoozed shelf gone.
Workaround
None that keeps the task running. Disabling the task, or settling instead of snoozing, avoids the wake.


Activity