Skip to content

improve: show optional run limits beside the automation schedule - #201283

Merged
daniel-lxs merged 7 commits into
mainfrom
openclaw/fresh-barnacle-5
Nov 29, 2026
Merged

daniel-lxs merged 7 commits into
mainfrom
openclaw/fresh-barnacle-5

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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 793ccbd and final head 5104762 on AWS Pond. Chromium drove a freshly built Control UI and a real isolated Gateway for each revision. Both saved 0 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.

Final-head action Terminal result Model requests
Let the Gateway timer reach 22:00 Started at 22:00:00.015, completed; next run 08:00 1
Click Run now at 23:00:00.939, cadence only Completed 1
Click Run now at 23:00:02.389, explicit 08:00–22:00 window Skipped outside active hours 0

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, including check-plan and check-lint.

Clean comparison: same paused, reopened job, with Advanced collapsed. Screenshots were captured on 935d623 (before) and 588dea0 (after). The control, state and placement were rechecked on 793ccbd and 5104762.

Main: Hourly cadence with the execution limit inside Advanced
Head: Hourly cadence with the separate execution limit visible and off

Annotated comparison: where to find the limit without changing the cadence.

Main: Advanced disclosure highlighted
Head: optional execution limit below the schedule highlighted

Co-authored with Vyctor Brzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 18, 2026 14:36
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 833a0e97-9090-8aed-8c93-eb0bb50633ea
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Nov 18, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Moves 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.

  • Before: The separate “Only run during set hours” control is hidden inside Advanced.
  • After: The control is visible below the schedule; cadence and manual-run behavior retain their existing meanings.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused, visually demonstrated relocation with unchanged storage and execution contracts, useful retained browser coverage, and passing current-head CI.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots demonstrate the changed Control UI placement, and the photographed production view files match the reviewed head; the body additionally reports save/reopen and timer/manual-run comparisons against an isolated Gateway, whose detailed runtime trace was not independently inspected.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Users must open Advanced to discover the optional execution limit associated with an automation's schedule.
Reason: The maintainer-authored direction improves discoverability with a focused relocation and preserves the existing defaults and behavior.

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: 51047620f7fb111047ac0e09f36f365456c105b1

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 14b9fc3 adds ui/src/pages/cron/view-schedule.tsx:138 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 14b9fc3c8d94; files: ui/src/pages/cron/view-schedule.tsx)

PR surface

Source 0, Tests +1, Docs +2. Total +3 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 37 37 0
Tests 2 9 8 +1
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 48 45 +3

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on maintainer: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (6 earlier review cycles)
  • reviewed 2026-11-18T15:15:18.888Z sha 82e090a :: blocked before merge. :: [P2] Keep the hours picker available for other supported schedules | [P2] Include the clone source in the split-time-zone explanation
  • reviewed 2026-11-28T19:47:14.761Z sha 04119a1 :: passed. :: none
  • reviewed 2026-11-28T20:25:35.750Z sha 8126fa0 :: blocked before merge. :: none
  • reviewed 2026-11-28T21:31:07.934Z sha 8126fa0 :: blocked before merge. :: none
  • reviewed 2026-11-28T22:31:22.550Z sha 8126fa0 :: blocked before merge. :: none
  • reviewed 2026-11-28T23:29:41.924Z sha 8126fa0 :: blocked before merge. :: none

Reviewed November 28, 2026, 9:49 PM ET / November 29, 2026, 02:49 UTC (Revision 7).

roboclaw-bot and others added 2 commits November 27, 2026 01:32
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.
@daniel-lxs
daniel-lxs force-pushed the openclaw/fresh-barnacle-5 branch from eaaefb9 to 04119a1 Compare November 28, 2026 19:36
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 28, 2026
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.
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed channel: voice-call Channel integration: voice-call app: ios App: ios app: macos App: macos gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling channel: feishu Channel integration: feishu plugin: file-transfer extensions: amazon-bedrock extensions: google plugin: workboard extensions: clawrouter Extension: clawrouter plugin: facetime FaceTime plugin extensions: searxng extensions: voyage size: XL labels Nov 29, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 29, 2026
@daniel-lxs
daniel-lxs merged commit 3aa0dc7 into main Nov 29, 2026
150 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants