Repository navigation
Edit and pause scheduled tasks; document missed runs - #474
Merged
Merged
Conversation
Settings > Scheduled tasks and a Bot's card get Edit (the task form, filled in) and Pause/Resume. Edit uses DSH's compare-and-update on the same Session and create-then-delete when the task moves to another chat. DSH has no pause, so a paused task's record is kept in FlyBot's state and created again on Resume. docs/subsystems/core-host.md says what DSH does with runs missed while the app was closed (one run for the latest missed time), with a test.
Collaborator
Author
|
Self-review: PASS
|
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #354
First slice per the Owner decision of 2026-10-20 (option a). The rest of #354 (last run result, failed runs with retry, limits per #56) is filed as #473.
What
moveSchedules), so a failure keeps the old task. A cron rule the form cannot show is kept.pausedSchedules) before DSH deletes it (a failed delete rolls back); Resume creates it again on the Bot's current part before the paused copy goes. A paused row reads Paused; it can be edited (stays paused) or deleted. A one-time task whose time passed while paused waits for an edit.docs/subsystems/core-host.md: after the app was closed a recurring task runs once, for its latest missed time, never once per missed time; a passed one-time task runs once on start. Tested against the pinned@deepseek-ai/dsh-schedule.schedule-updateneeds the task's Session and its new target; pause/resume need the Session. The edit text gets the same chip check asschedule-create.Test
ARCH_DOCS_BASE=origin/main TZ=UTC npm run verify: pass (core 1038, social 291, tree 80, timeline 80, scripts 88, interop 37, live-e2e 16; 0 failures).core/test/schedules.test.js(edit in place, edit to another chat with failure kept, pause/resume with failures, paused delete and passed one-time, missed-run contract),core/test/schedules-client.test.js(row buttons, prefilled form, form start),core/test/authz.test.js(Proactive reminders 2/3: scheduled tasks and recurring summaries #354 endpoints).Risk tier: T2 (estimate; the controller sets the label)