Skip to content

feat: show failing automations in their own group in the Automations sidebar - #206111

Merged
daniel-lxs merged 2 commits into
openclaw:mainfrom
daniel-lxs:automations-sidebar-show-failed-ones
Nov 26, 2026
Merged

daniel-lxs merged 2 commits into
openclaw:mainfrom
daniel-lxs:automations-sidebar-show-failed-ones

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

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

Before After
Before: the two failing automations are listed inside Active After: the two failing automations are in a Failing group above Active

Annotated comparison

Before After
Failing automations highlighted inside Active Failing group highlighted at the top of the sidebar
5e8c9d5ba39 1a65472abe1
Failing Needs attention
  • ui/src/components/app-sidebar-automations.test.ts: new case "lists failing automations in their own group, out of Active and Paused" fails on main (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.
  • Not exercised live: an automation stopped automatically after repeated failures (covered by the unit case only).

Closes #206116

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 26, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 26, 2026
@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: Both appear among healthy automations under Active, with only red dots identifying failures.
  • After: Both appear once in Needs attention above the healthy Active automations.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A worthwhile, focused presentation change with real visual proof, useful regression coverage, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots from the reported isolated Gateway show two real failed runs moving into the expanded top group; the heading-only follow-up preserves that exercised behavior, while automatic-stop membership has renderer-test coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Failed automations are difficult to find among healthy rows, and collapsed groups hide their failure dots.
Reason: The maintainer-authored direction improves discovery through the existing sidebar structure with limited implementation cost.

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: 1a65472abe12adbf81fdd34d384340d457c6cceb

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit d103997 adds ui/src/components/app-sidebar-automations.tsx:135 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d1039972ec29; files: ui/src/components/app-sidebar-automations.tsx)

PR surface

Source +18, Tests +34. Total +52 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 24 6 +18
Tests 1 34 0 +34
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 58 6 +52

Preflight source

Source 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 cluster

Relationship: same_root_cause
Canonical: #206116
Summary: This PR implements the failure-discovery improvement tracked by the linked issue.

Members:

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

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-26T19:21:08.733Z sha 5e8c9d5 :: passed. :: none

Reviewed November 26, 2026, 2:51 PM ET / 19:51 UTC (Revision 2).

@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@daniel-lxs
daniel-lxs merged commit eb8a2d2 into openclaw:main Nov 26, 2026
91 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
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
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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

Title: Automations sidebar: failing automations are hard to find

1 participant