Repository navigation
fix: show the automation schedule as one line without a repeated summary - #201214
Conversation
Drop the schedule summary line that repeated the tray's controls. Keep only what the controls cannot show: a time zone set under Advanced, and a saved one-shot's runtime when it no longer matches the configured time. Size schedule values to their text, give every word even spacing, align the clock with the prompt text and center the row in the tray. Long sentences wrap within the schedule while the run controls keep the first line. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: feb4c8cd-836e-445e-a292-8e6828908d62
|
🦞👀 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: needs changes before merge. What this changesThis PR removes the repeated automation schedule summary and places time-zone and one-shot runtime details inline with the schedule controls. Example: Edit an automation that runs every 30 minutes.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-directed polish is visually demonstrated, but its additional CSS causes the required performance check to fail. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI automation editor renders schedule form values and saved runtime facts into controls and explanatory text; the existing form owner continues to build Gateway updates. flowchart LR
A[Saved automation] --> B[Existing form owner]
B --> C[Schedule controls]
A --> D[Runtime status presenter]
D --> E[Inline schedule note]
C --> F[Automation editor tray]
E --> F
Technical reviewBest possible solution: Keep the single schedule sentence and necessary inline facts while consolidating tray styles enough to pass the existing paired CSS budget. Do we have a high-confidence way to reproduce the issue? Current main renders both the sentence controls and their summary, and the supplied before screenshot demonstrates the repetition; no target code was executed during this review. Is this the best way to solve the issue? Removing the duplicate formatter and reusing the existing runtime presenter is the smallest coherent approach; the added layout declarations still need consolidation to satisfy the enforced asset budget. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f7c680434384. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +36, Tests +16. Total +52 across 8 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 Reviewed November 18, 2026, 8:30 AM ET / 13:30 UTC. |
…ary (openclaw#201214) Keep the automation schedule inline and remove its duplicated summary without changing scheduling or saved fields. Maintainer-approved exception: generated CSS size only. Other required checks and security review were verified on the reviewed head. CI: https://github.com/openclaw/openclaw/actions/runs/44315517116 Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
When you create or edit an automation, the tray under the prompt shows the schedule as a sentence ("Every 30 Minutes") and then repeats it on a second line ("Runs every 30 minutes"). The repeat makes the tray two lines tall for no new information, the number box leaves a wide gap before the unit, and the second line starts at a different edge than the controls above it.
User Impact
User impact: the schedule tray is one calm line that reads left to right ("Every 30 Minutes"), with even spacing and the model controls on the same line. It adds text only when the controls cannot show something: a time zone set under Advanced, or a saved one-shot whose next run has moved, is paused, running, waiting or not scheduled.
Why This Change Was Made
The summary line restated every schedule kind, and for cron it printed the raw expression rather than words. It now appears in only two cases: the time zone, which moved into collapsed Advanced in #200817, and the one-shot runtime facts from #188864. Both sit inline at the end of the sentence; on phones they become rows in the schedule card. The runtime note hides when the next run matches the configured time.
Schedule values now fit their text: one- and two-digit intervals keep one width, longer ones grow by one digit, and the custom expression field hugs its expression. The clock lines up with the prompt text, the row is centered in the visible tray, and every word sits the same distance from the next. When a long sentence does not fit, it wraps under its first word while the model controls keep the first line. Disabled schedule parts dim like the other controls while saving, and tray errors start where the words do.
Removed: the summary helper, 12 English strings, and the summary-only CSS.
Evidence
Real Control UI production bundle with a mocked Gateway and synthetic automations (25 jobs with long names, Hourly/Daily/Once/custom-cron bylines, one failed and several paused rows), Chromium at 2x, en-US, UTC. Before =
9d6f4a9(main), after = this branch.Clean comparison: the tray
Before: "Every 30 Minutes" is repeated as "Runs every 30 minutes", and the number box leaves a gap before "Minutes".
After: one line, even word spacing, the number box fits "30".
Clean comparison: full page (1280 × 900)
Before
After
Annotated comparison
Before
After
Time zone kept inline (Custom
0 6,18 * * *, America/Los_Angeles)Before
After
Phone (390 px)
Also checked with the same setup: dark theme, daily with a time zone, saved one-shot with a moved next run (desktop and phone), the longest sentence wrapping at 700 px, invalid interval, saving, Event, read-only script payload, new automation, and the phone time-zone row.
Tests: the cron page unit suite passes (28 files, 210 tests), including new cases for the time zone and for hiding a next run that matches the configured time; the one-shot runtime, saved descriptions and select-value e2e tests pass. Lint, format, the Control UI controller guard, i18n verify and the UI typecheck are clean.
This PR and the model/reasoning picker PR both edit the tray; they merge cleanly with each other (checked with
git merge-treeon the two commits).Known limits:
field-sizinguse a fixed four-digit interval box.Long waiting status at 700 px
Chromium at 700 × 900 with the same synthetic one-shot automation and agent-busy status. On the original PR head (
9b89849b3d2) the status pushed the model and reasoning controls to a third line. Infbac9f00994the status wraps in its own space; the controls stay aligned with the schedule and the text remains visible. The one-shot browser test covers the same transition and checks that saving does not change the schedule.Before
After
Annotated comparison
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.