Repository navigation
fix: keep failed automations in Active and Paused - #207316
Conversation
Keep failing and automatically stopped automations in Active or Paused while surfacing failure state on collapsed group headings. Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 04d84839-4059-4227-aebc-306898446074
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR keeps failed automations in Active or Paused and adds failure dots to their group headings. Example: “Broken triage” is enabled with a failed last run, and “Stopped report” is automatically disabled.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it restores the approved Active/Paused design while preserving failure visibility, and no actionable patch defect was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sidebar reads the cron inventory, applies the existing filters, and renders grouped automation links and failure indicators. flowchart LR
A[Cron inventory] --> B[Agent and list filters]
B --> C[Active automations]
B --> D[Paused automations]
C --> E[Group headings and rows]
D --> E
Technical reviewBest possible solution: Retain the existing sidebar owner, group every automation by enabled status, and expose failures through row and heading indicators. Do we have a high-confidence way to reproduce the issue? Current-main source explicitly excludes failing jobs from Active and Paused, and the supplied before screenshot shows that behavior. Is this the best way to solve the issue? The focused change restores the earlier grouping invariant and preserves discoverability without adding state, another filter, or a competing renderer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cdd428c947c9. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +12. Total +12 across 4 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 (1 earlier review cycle)
Reviewed November 28, 2026, 6:23 AM ET / 11:23 UTC (Revision 2). |
Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 04d84839-4059-4227-aebc-306898446074
Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 04d84839-4059-4227-aebc-306898446074
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 04d84839-4059-4227-aebc-306898446074
Related: #206116
Contributed by @daniel-lxs.
Work sessions
Linked for team reference; these sessions aren’t public.
What Problem This Solves
The Automations sidebar was changed to move failed and automatically stopped automations into a third Needs attention group. That made failures easy to find, but it overrode the original #199829 design where every automation stays in either Active or Paused, with failure state shown as an indicator.
User Impact
Failed and automatically stopped automations remain in the same Active or Paused group as the rest of the schedule list. When either group is collapsed, its heading now keeps a failure dot so failures stay discoverable without introducing a third group.
Why This Change Was Made
This restores the #199829 Active/Paused grouping rule while preserving the real visibility fix from #206111/#206116. The row-level failure dot still marks the individual automation; the group heading dot carries that signal when rows are hidden.
Evidence
Clean comparison
Annotated comparison
Captured with a mocked Control UI Gateway at
58a6e86d85c47for before and PR heada715206c4b7afor after, same viewport and automation fixture. The post-publication PR head is tree-identical to the implementation commit used for the visual capture.ui/src/components/app-sidebar-automations.test.tswith the restoration expectation failed because the Needs attention group was present.a715206c4b7a:node scripts/run-vitest.mjs run --config test/vitest/vitest.ui.config.ts --configLoader runner ui/src/components/app-sidebar-automations.test.ts --maxWorkers=1— 4 passed.pnpm tsgo:uion PR heada715206c4b7a— passed.pnpm exec oxlint ui/src/components/app-sidebar-automations.tsx ui/src/components/app-sidebar-automations.test.ts ui/src/components/sidebar-list-group.tsx— passed.pnpm exec oxfmt --check ui/src/components/app-sidebar-automations.tsx ui/src/components/app-sidebar-automations.test.ts ui/src/components/sidebar-list-group.tsx ui/src/styles/layout.css— passed.pnpm lint:ui:styles --fix=false ui/src/styles/layout.css— passed.pnpm check:control-ui-controllers— passed.git diff --checkon PR heada715206c4b7a— passed.No update/state migration is involved.
Worked on by
🦞 Made with OpenClaw