Repository navigation
feat: show failing automations in their own group in the Automations sidebar - #206111
Conversation
|
🦞👀 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: passed. What this changesThis PR places failed and automatically stopped automations in an initially expanded Needs attention group above Active and Paused. Example: Inbox triage and Weekly report have failed their latest runs.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: current main still mixes failed automations into Active or Paused, and this focused change addresses that discovery gap without changing scheduling. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sidebar reads the shared cron inventory, applies agent scope and filters, and renders grouped links to automation details. flowchart TD
A[Gateway cron inventory] --> B[Shared inventory reader]
B --> C[Agent scope and filters]
C --> D[Needs attention]
C --> E[Active and Paused]
D --> F[Automation details]
E --> F
Technical reviewBest possible solution: Keep failure grouping in the existing sidebar renderer, preserving filters, navigation, and one listing per automation. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the discovery gap, corroborated by the inspected before screenshots; this read-only review did not execute the application. Is this the best way to solve the issue? The implementation reuses the existing failure predicate and group component, preserves the supported filters, and avoids introducing another state owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ae2d953b68fa. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +18, Tests +34. Total +52 across 2 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. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label 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 26, 2026, 2:51 PM ET / 19:51 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
I grouped failed and automatically stopped automations under Needs attention at the top of the Automations sidebar so they are easy to find. The group opens by default. Closes openclaw#206116
What Problem This Solves
In the Control UI, the Automations sidebar lists automations under Active and Paused. An automation whose last run failed sits among the healthy ones, marked only by a small red dot, and with Active or Paused collapsed it can't be seen at all. Someone with a few dozen automations has no quick way to find the ones that are failing.
User Impact
Automations whose last run failed, or that were stopped automatically after failing, appear in a Needs attention group at the top of the sidebar, open by default. They leave Active and Paused, so each automation is listed once, and the group only shows when something is failing.
Why This Change Was Made
A group fits the sidebar's existing layout (Active, Paused) better than another filter, which people would have to open to discover. The group uses the same rule as the red dot on each row (last run errored, or stopped automatically), and its heading reuses the existing "Needs attention" string, so no new copy or translations are needed.
Evidence
Isolated Gateway built from
main(2fda93c) and from this branch (5e8c9d5), with the same made-up automations: two daily/weekly automations forced to run against a model with no API key (both runs really fail with a 401), one that has not run yet, and one paused. Same viewport, crop and state for both shots.Clean comparison
Annotated comparison
5e8c9d5ba391a65472abe1ui/src/components/app-sidebar-automations.test.ts: new case "lists failing automations in their own group, out of Active and Paused" fails onmain(expected [] to deeply equal [ 'Broken', 'Stopped' ]) and passes with the change; all 4 cases in the file pass.tsgo -p tsconfig.ui.json, oxlint and oxfmt on the changed files: clean.Closes #206116