Repository navigation
fix(cron): show saved automation descriptions in dashboard - #118593
Conversation
Co-authored-by: Matt Van Horn <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 4:42 AM ET / 08:42 UTC. ClawSweeper reviewWhat this changesThis 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 readinessKeep 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 Priority: P3 Review scores
Verification
How this fits togetherThe 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]
Decision needed
Why: The patch is technically bounded and follows the established Cron view owner, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +137, Tests +149. Total +286 across 8 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest 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: 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…118593) Co-authored-by: Matt Van Horn <[email protected]>
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
Summarize overnight deployments and flag failed releases, verified the exact value in the CLI listing andstate/openclaw.sqlitecron_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 screenshotlive-gateway.pnghas SHA-256ceb6c6f42bcfa18f351b7a0a9b81aa64b6d3b9cbb4c83ed9f7f77791a11c5cbd.· Summarize overnight deployments and flag failed releases; both Settings and History showDescription: Summarize overnight deployments and flag failed releases, while the existing prompt remains visible.git diff --checkis clean.TS2883,TS4058,TS7056) at untouchedui/src/e2e/new-session-page.test-support.ts:68on both this patch and independently verified cleanmaincommit0cad02313a9cbc6d1e60dfcb1d44b1bde523e3fb; none of the changed Cron files produces diagnostics. Declaration-disabled analysis is supplemental, not a replacement: normal hosted CI must pass before landing.xhighfound zero actionable issues (0.99 confidence), with a clean secret scan. This PR was prepared with AI assistance and human contributor credit preserved.