Skip to content

fix(cron): show saved automation descriptions in dashboard - #118593

Merged
steipete merged 1 commit into
mainfrom
codex/fix-cron-description-13479
Aug 3, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-cron-description-13479

Conversation

@steipete

@steipete steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Closes #13479

Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Fixes an issue where users managing scheduled automations in the Control UI could not see their saved human-readable descriptions in the Cron dashboard, making similarly named jobs difficult to distinguish without opening the collapsed advanced editor.

Reported by @vokaplok in #13479. This builds on the original implementation proposed by @mvanhorn in #86674; Matt Van Horn is credited as a commit coauthor.

Why This Change Was Made

Show each existing saved description inline beside its automation name and, when selected, in the shared detail header across Settings and History. The description remains safely escaped, whitespace-trimmed, localized through existing labels, truncated only in compact rows, and absent when blank; no storage, configuration, transport, or permission contract changes.

User Impact

Operators can immediately distinguish scheduled automations by their human-readable descriptions, inspect the complete description without opening or editing advanced settings, and retain that context across History and read-only views. Existing prompts, row height, and all five scheduled payload types remain intact.

Evidence

  • Real user-path proof: created a scheduled automation through the normal CLI with the description Summarize overnight deployments and flag failed releases, verified the exact value in the CLI listing and state/openclaw.sqlite cron_jobs.description, started the real Gateway with freshly built Control UI assets, completed the normal authenticated dashboard bootstrap, and verified the actual Chromium-rendered Cron row, Settings detail, History detail, and existing prompt. Proof run: https://github.com/openclaw/openclaw/actions/runs/30793733943. The captured screenshot live-gateway.png has SHA-256 ceb6c6f42bcfa18f351b7a0a9b81aa64b6d3b9cbb4c83ed9f7f77791a11c5cbd.
  • Before: the scheduled automation row showed only its name; the saved description was hidden inside collapsed Advanced settings.
  • After: the same compact row shows · Summarize overnight deployments and flag failed releases; both Settings and History show Description: Summarize overnight deployments and flag failed releases, while the existing prompt remains visible.
  • Exact final branch, official real Chromium: 13/13 scenarios across the dedicated description suite and existing Cron browser suite, including all five payload types, blank descriptions, unchanged row height, Settings/History transitions, and read-only behavior.
  • Focused Cron owner tests: 76/76 passing across three suites.
  • Static checks: all seven changed TypeScript files pass targeted oxlint; the Cron stylesheet passes stylelint; all eight changed files pass oxfmt; git diff --check is clean.
  • TypeScript transparency: strict full UI and core-test project analysis passes with declaration emission disabled. The normal declaration-emitting UI command currently reports the same three pre-existing diagnostics (TS2883, TS4058, TS7056) at untouched ui/src/e2e/new-session-page.test-support.ts:68 on both this patch and independently verified clean main commit 0cad02313a9cbc6d1e60dfcb1d44b1bde523e3fb; none of the changed Cron files produces diagnostics. Declaration-disabled analysis is supplemental, not a replacement: normal hosted CI must pass before landing.
  • Independent and AI-assisted review: independent reviewer clean; fresh full-patch Codex autoreview at xhigh found zero actionable issues (0.99 confidence), with a clean secret scan. This PR was prepared with AI assistance and human contributor credit preserved.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 3, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 4:42 AM ET / 08:42 UTC.

ClawSweeper review

What this changes

This PR renders saved Cron automation descriptions in compact task rows and the selected task header, including the read-only and History views, with regression coverage for all payload types and blank descriptions.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open for normal maintainer review. It is a focused Control UI usability feature built on the already-persisted Cron description field; the current implementation cleanly owns the missing presentation and no blocking patch defect was found. The protected maintainer label and still-running hosted checks mean it should receive an explicit exact-head merge decision rather than automated cleanup.

Priority: P3
Reviewed head: 0a1bb6e8a5c8e5d962ca2a2fe6add0375aba4d3c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-aligned UI patch with broad regression coverage and a documented real Gateway/browser run; the remaining gate is ordinary protected-label review and completion of hosted checks.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The PR documents an after-fix real Gateway and Chromium path and the supplied check context shows the dedicated real-behavior workflow succeeded; the prepared local media manifest contains only an older related PR artifact that failed to download, so this review relies on the successful run record and detailed PR evidence rather than a re-opened screenshot.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR documents an after-fix real Gateway and Chromium path and the supplied check context shows the dedicated real-behavior workflow succeeded; the prepared local media manifest contains only an older related PR artifact that failed to download, so this review relies on the successful run record and detailed PR evidence rather than a re-opened screenshot.
Evidence reviewed 6 items Existing data contract: The Gateway protocol already exposes an optional persisted CronJob.description, so the requested information exists without a schema, storage, config, or transport change.
Current-main gap: Current main renders only the Cron job name in a task row and only the title/schedule metadata in the selected-job header; neither presentation path reads description.
Proposed owner-boundary repair: The branch trims the existing value once at each Control UI presentation boundary, omits blank descriptions, and leaves all persistence and Cron request behavior untouched.
Findings None None.
Security None None.

How this fits together

The Gateway returns persisted Cron job records, including an optional human-readable description, to the Control UI. The Cron page renders those records first as browseable task rows and then as a selected task’s Settings or History detail view.

flowchart LR
  A[Persisted Cron job] --> B[Gateway Cron API]
  B --> C[Control UI Cron state]
  C --> D[Automation task row]
  C --> E[Selected automation]
  D --> F[Inline description]
  E --> G[Settings and History header]
Loading

Decision needed

Question Recommendation
Should the Cron UI owner approve this presentation-only enhancement once the exact-head hosted checks complete? Approve after hosted checks: Confirm the compact-row and detail-header presentation is the desired Cron UI treatment, then merge when required checks succeed on the current head.

Why: The patch is technically bounded and follows the established Cron view owner, but the protected maintainer label reserves the final product and merge decision for a human.

Before merge

  • Resolve merge risk (P1) - The protected maintainer label requires an explicit maintainer merge decision, and the hosted checks shown in the review context were still running; merge only after the exact head has current required-check results.
  • Complete next step (P2) - No mechanical repair is indicated; the protected maintainer label and in-progress hosted checks require ordinary owner review of the current head.
Agent review details

Security

None.

PR surface

Source +137, Tests +149. Total +286 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 3 137 0 +137
Tests 5 251 102 +149
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 388 102 +286

Review metrics

Metric Value Why it matters
Production vs test LOC production +42, tests +244 The production growth is a bounded UI rendering and styling capability; the larger test delta covers payload variants, blank values, detail tabs, and read-only browsing.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #13479
Summary: This PR is the active candidate fix for the canonical request to expose Cron job descriptions in the Control UI; it supersedes the earlier closed-unmerged implementation attempt.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the existing Gateway and persisted-description contract unchanged, then land this focused Control UI rendering change after an owner confirms the compact-row presentation and hosted checks on the exact head.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the existing Gateway and persisted-description contract unchanged, then land this focused Control UI rendering change after an owner confirms the compact-row presentation and hosted checks on the exact head.

Do we have a high-confidence way to reproduce the issue?

Yes—current main has a direct source-level reproduction: CronJob.description is returned by the Gateway protocol but the current Cron row and selected-job header do not render it. The PR body also supplies a real Gateway and Chromium after-fix path, although this read-only review did not execute it locally.

Is this the best way to solve the issue?

Yes. Rendering the existing optional value at the Cron page’s list and selected-detail presentation boundaries is the narrowest maintainable solution; adding storage, configuration, or a separate data request would duplicate an already available contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0cad02313a9c.

Labels

Label changes:

  • add P3: This is a low-risk Control UI usability enhancement using an existing persisted field and does not alter Cron execution, configuration, storage, or permissions.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR documents an after-fix real Gateway and Chromium path and the supplied check context shows the dedicated real-behavior workflow succeeded; the prepared local media manifest contains only an older related PR artifact that failed to download, so this review relies on the successful run record and detailed PR evidence rather than a re-opened screenshot.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR documents an after-fix real Gateway and Chromium path and the supplied check context shows the dedicated real-behavior workflow succeeded; the prepared local media manifest contains only an older related PR artifact that failed to download, so this review relies on the successful run record and detailed PR evidence rather than a re-opened screenshot.

Label justifications:

  • P3: This is a low-risk Control UI usability enhancement using an existing persisted field and does not alter Cron execution, configuration, storage, or permissions.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR documents an after-fix real Gateway and Chromium path and the supplied check context shows the dedicated real-behavior workflow succeeded; the prepared local media manifest contains only an older related PR artifact that failed to download, so this review relies on the successful run record and detailed PR evidence rather than a re-opened screenshot.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR documents an after-fix real Gateway and Chromium path and the supplied check context shows the dedicated real-behavior workflow succeeded; the prepared local media manifest contains only an older related PR artifact that failed to download, so this review relies on the successful run record and detailed PR evidence rather than a re-opened screenshot.

Evidence

What I checked:

  • Existing data contract: The Gateway protocol already exposes an optional persisted CronJob.description, so the requested information exists without a schema, storage, config, or transport change. (packages/gateway-protocol/src/schema/cron.ts:531, 0cad02313a9c)
  • Current-main gap: Current main renders only the Cron job name in a task row and only the title/schedule metadata in the selected-job header; neither presentation path reads description. (ui/src/pages/cron/view.ts:707, 0cad02313a9c)
  • Proposed owner-boundary repair: The branch trims the existing value once at each Control UI presentation boundary, omits blank descriptions, and leaves all persistence and Cron request behavior untouched. (ui/src/pages/cron/view.ts:708, 0a1bb6e8a5c8)
  • Regression coverage: The new browser test covers all five Cron payload kinds, blank descriptions, unchanged compact-row height, detail transitions, and the existing read-only path; unit coverage also exercises trimming, omission, click behavior, and both detail tabs. (ui/src/e2e/cron-descriptions.e2e.test.ts:24, 0a1bb6e8a5c8)
  • Feature-history routing: The current Cron master-detail UI was introduced by Peter Steinberger in commit 17a533c, and later Cron UI work in the same files remains concentrated in that history; recent localization work also touched the surface. (ui/src/pages/cron/view.ts:919, 17a533ce2689)
  • After-fix behavior proof: The PR body documents a real CLI-created Cron job, persisted SQLite value, authenticated Gateway bootstrap, and Chromium verification of the row plus Settings and History headers; the supplied GitHub context reports the dedicated Real behavior proof workflow completed successfully on this PR. (0a1bb6e8a5c8)

Likely related people:

  • steipete: Current-main history shows repeated Cron UI redesign, repair, and styling work by Peter Steinberger, including the master-detail Cron surface this PR extends. (role: current-main Cron UI owner and recent area contributor; confidence: high; commits: 17a533ce2689, cfe801977239, f1a8c04aeab4; files: ui/src/pages/cron/view.ts, ui/src/pages/cron/cron-page.ts, ui/src/styles/cron.css)
  • Vincent Koc: Recent main history includes Cron timezone and localization changes in the same Control UI Cron surface, making this a useful secondary reviewer for presentation consistency. (role: recent adjacent contributor; confidence: medium; commits: a47d81e7b33b, 0faeb8e9c3d2; files: ui/src/pages/cron/view.ts, ui/src/pages/cron/cron-page.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit e9c148f into main Aug 3, 2026
110 of 118 checks passed
@steipete
steipete deleted the codex/fix-cron-description-13479 branch August 3, 2026 16:20
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

Feature Request: Show cron job details (prompt/summary) in Web UI

1 participant