Closes#19. This is a UI change, so it needs your approval.
What's new
Edit changes a schedule in place and keeps its history. The next run is worked out again. It uses the same dialog as Create, filled in, and saves with PUT /api/scheduled-commands/:id.
Run now runs the schedule at once.
It records who asked (triggered_by in the run's log) and leaves the next scheduled run alone.
If a previous run is still going, it answers 409.
The dispatch code moved out of the scheduler loop into dispatchSchedule(), so the loop and Run now share it. A Run now with an offline worker is recorded as failed, just as a scheduled run is (#9).
Cron is offered in the dialog, with an explanation of the format.
Next-runs preview: as you type, the dialog shows the next three runs and the server time zone they're worked out in. Daily HH:MM times use that zone too. A bad expression says why.
Runs opens Executions on the Automated tab, filtered to this schedule. Executions now honours ?view= and ?search= in its URL.
Errors stay in the dialog instead of a toast. Create and edit share one check (scheduleInput), which now also rejects times like 25:00.
Also fixed: the dialog's worker list ran together on one line. It borrows Quick Command's markup, but those styles weren't loaded on this page.
Note: renaming a schedule doesn't relabel its earlier runs. They keep scheduler:<old name>, so Runs shows runs since the rename.
Tests
Unit tests for scheduleInput and nextRuns.
Integration:
editing changes the fields and next run; bad input gets 400; an unknown id gets 404;
Run now dispatches, records who asked, leaves next_run alone, and returns 409 while a run is going;
the preview returns three runs and a time zone.
UI: create with cron, see the preview (including a bad expression), edit, Run now, then follow Runs to that one execution.
Locally: unit 161/161, integration 59/59, UI 48/48, lint and semgrep are clean.
Closes #19. **This is a UI change, so it needs your approval.**

<img src="https://code.lotusguild.org/LotusGuild/pulse/raw/branch/pr-assets/pr-85/dialog-after.png" width="480" alt="Edit dialog with cron preview">
## What's new
- **Edit** changes a schedule in place and keeps its history. The next run is worked out again. It uses the same dialog as Create, filled in, and saves with `PUT /api/scheduled-commands/:id`.
- **Run now** runs the schedule at once.
- It records who asked (`triggered_by` in the run's log) and leaves the next scheduled run alone.
- If a previous run is still going, it answers 409.
- The dispatch code moved out of the scheduler loop into `dispatchSchedule()`, so the loop and Run now share it. A Run now with an offline worker is recorded as failed, just as a scheduled run is (#9).
- **Cron** is offered in the dialog, with an explanation of the format.
- **Next-runs preview:** as you type, the dialog shows the next three runs and the server time zone they're worked out in. Daily `HH:MM` times use that zone too. A bad expression says why.
- **Runs** opens Executions on the Automated tab, filtered to this schedule. Executions now honours `?view=` and `?search=` in its URL.
- **Errors stay in the dialog** instead of a toast. Create and edit share one check (`scheduleInput`), which now also rejects times like `25:00`.
- **Also fixed:** the dialog's worker list ran together on one line. It borrows Quick Command's markup, but those styles weren't loaded on this page.
**Note:** renaming a schedule doesn't relabel its earlier runs. They keep `scheduler:<old name>`, so **Runs** shows runs since the rename.
## Tests
- Unit tests for `scheduleInput` and `nextRuns`.
- Integration:
- editing changes the fields and next run; bad input gets 400; an unknown id gets 404;
- Run now dispatches, records who asked, leaves `next_run` alone, and returns 409 while a run is going;
- the preview returns three runs and a time zone.
- UI: create with cron, see the preview (including a bad expression), edit, Run now, then follow Runs to that one execution.
- **Locally:** unit 161/161, integration 59/59, UI 48/48, lint and semgrep are clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Edit: PUT /api/scheduled-commands/:id changes a schedule in place
(keeping its history) and works out its next run again. The create
dialog doubles as the edit dialog.
- Run now: POST /api/scheduled-commands/:id/run dispatches at once,
records triggered_by, leaves next_run alone, and answers 409 while a
previous run is still going. The dispatch body moved out of the
scheduler loop into dispatchSchedule() so both share it.
- Cron is offered in the dialog, and a preview shows the next three runs
and the server time zone they are worked out in
(GET /api/scheduled-commands/preview). Errors stay in the dialog.
- Runs links to /executions?view=automated&search=scheduler:<name>;
Executions now honours ?view= and ?search=.
- Create and edit share scheduleInput(), which also checks daily HH:MM.
- The dialog's worker list had no styles on this page (it borrows Quick
Command's markup); they are now included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new ?search= deep link let semgrep's raw-html-concat rule trace
location.search into the request and on to the error text it shows.
That text goes through esc(), which the registry rule does not know;
Pulse's own pulse-innerhtml-unescaped rule checks the escaping.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared
merged commit b5e8455092 into main2026-11-23 22:01:24 -05:00
jared
deleted branch scheduler-edit-run2026-11-23 22:01:26 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #19. This is a UI change, so it needs your approval.
What's new
PUT /api/scheduled-commands/:id.triggered_byin the run's log) and leaves the next scheduled run alone.dispatchSchedule(), so the loop and Run now share it. A Run now with an offline worker is recorded as failed, just as a scheduled run is (#9).HH:MMtimes use that zone too. A bad expression says why.?view=and?search=in its URL.scheduleInput), which now also rejects times like25:00.Note: renaming a schedule doesn't relabel its earlier runs. They keep
scheduler:<old name>, so Runs shows runs since the rename.Tests
scheduleInputandnextRuns.next_runalone, and returns 409 while a run is going;🤖 Generated with Claude Code