Repository navigation
improve: show optional run limits beside the automation schedule - #201283
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 833a0e97-9090-8aed-8c93-eb0bb50633ea
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesMoves the existing optional execution-hours controls from Advanced to directly below the automation schedule. Example: Edit an hourly automation scheduled from 08:00 through 22:00 with Advanced collapsed.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a worthwhile, maintainer-directed UI improvement with no introduced defects found; the reviewed head has passing CI and is mergeable. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI edits existing cron form fields and sends them through the unchanged Gateway API, where the scheduler owns cadence and execution-window enforcement. flowchart TD
A[Automation editor] --> B[Schedule controls]
A --> C[Optional execution window]
B --> D[Existing form serializer]
C --> D
D --> E[Gateway cron API]
E --> F[Scheduler]
Technical reviewBest possible solution: Keep the existing execution-window controls beside the schedule while preserving their independent saved fields and scheduler semantics. Do we have a high-confidence way to reproduce the issue? This is a placement improvement rather than a broken scheduling contract; current source and inspected screenshots establish the before/after behavior. Is this the best way to solve the issue? Moving the existing controls is the smallest complete change: it preserves one form owner, removes the old rendering location, and leaves scheduling and persistence untouched. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 28be8a51ee15. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +1, Docs +2. Total +3 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed November 28, 2026, 9:49 PM ET / November 29, 2026, 02:49 UTC (Revision 7). |
Merge main without rebasing. Keep hours editable for all supported schedules and show the preserved split time zone when cloning. Co-authored-by: daniel-lxs <[email protected]>
Save Between hours as an execution window and keep the original cron expression when editing or cloning. Carry separate schedule and window time zones through frequency changes.
eaaefb9 to
04119a1
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Exercise the same form update used by the editor. Integrate main so dependency and Control UI budget checks compare the schedule change against the current baseline.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
The hourly picker answers “when should this run automatically?” On main, the separate option for limiting all runs is under Advanced, away from the schedule it affects.
User Impact
Only run during set hours now sits below the schedule. Its start, end and time zone appear only when it is enabled. The simple Hourly → Between hours picker still includes its last hour. An 08:00–22:00 schedule runs at 22:00, reopens as Hourly, and allows Run now at 23:00 unless an explicit execution window also applies. The schedule and the window can use different time zones. No migration is needed.
Why This Change Was Made
This moves the existing controls rather than changing what they save. The cadence decision keeps simple schedules editable as cron expressions. The execution-window decision makes an explicit window apply to manual runs as well, with an exclusive end. The scheduler, Gateway API and saved-job format are unchanged. The diff against main is five files: two UI files, two existing browser tests and the schedule guide.
Evidence
I compared main
793ccbdand final head5104762on AWS Pond. Chromium drove a freshly built Control UI and a real isolated Gateway for each revision. Both saved0 8-22 * * *with no execution window, reopened as Hourly, and preserved distinct schedule and window time zones across save and reopen. Changing only the window from Buenos Aires to Honolulu allowed an after-hours manual run while that window was open; removing it left the cadence unchanged.The clock was real; fixed-offset time zones aligned the wall minutes. The manual results were matched to terminal history by run ID. The model was a loopback fixture, with no external delivery, production accounts or mobile layout in this proof.
Both live flows, all 13 focused browser cases, and all 23 scheduler cases passed. The earlier Chromium comparison failed on the old PR’s outgoing save and passed on the correction. The final five-file patch is byte-identical to that correction against its respective main. The GitHub CI gate passed on
5104762, includingcheck-planandcheck-lint.Clean comparison: same paused, reopened job, with Advanced collapsed. Screenshots were captured on
935d623(before) and588dea0(after). The control, state and placement were rechecked on793ccbdand5104762.Annotated comparison: where to find the limit without changing the cadence.
Co-authored with Vyctor Brzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by