Skip to content

fix: keep failed automations in Active and Paused - #207316

Merged
daniel-lxs merged 4 commits into
mainfrom
openclaw/restore-automation-groups
Nov 28, 2026
Merged

daniel-lxs merged 4 commits into
mainfrom
openclaw/restore-automation-groups

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

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

Before After
Before: failed automations are pulled into a Needs attention group above collapsed Active and Paused After: only Active and Paused remain, and each collapsed group with failures shows a failure dot

Annotated comparison

Before After
Before annotated: Needs attention is highlighted as a third group and Active has no failure signal while collapsed After annotated: Active and Paused headings are highlighted with failure dots while collapsed

Captured with a mocked Control UI Gateway at 58a6e86d85c47 for before and PR head a715206c4b7a for after, same viewport and automation fixture. The post-publication PR head is tree-identical to the implementation commit used for the visual capture.

  • Red reproduction on main: ui/src/components/app-sidebar-automations.test.ts with the restoration expectation failed because the Needs attention group was present.
  • Green unit proof on PR head 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.
  • Real UI proof on the tree-identical implementation commit: temporary Control UI E2E capture for the Automations sidebar — 1 passed.
  • pnpm tsgo:ui on PR head a715206c4b7a — 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 --check on PR head a715206c4b7a — passed.
  • Independent review: no P0/P1 findings.

No update/state migration is involved.

Worked on by

🦞 Made with OpenClaw

roboclaw-bot and others added 2 commits November 28, 2026 07:07
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
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 28, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

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

  • Before: Both appear in a separate Needs attention group.
  • After: They remain in Active and Paused respectively, with red heading dots visible when collapsed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, coherent presentation repair with inspected visual evidence, focused regression coverage, and no identified correctness defect.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots from the Control UI with a mocked Gateway show both collapsed status headings retaining failure dots; unit results support job placement, while live scheduler execution is outside this visual proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Failed automations leave their Active or Paused category, overriding the original sidebar grouping design.
Reason: The maintainer-authored direction restores the original grouping while retaining the visibility improvement from the preceding change.

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: 5729380127c47df1cbaa6c4d16d6a64a460ae2fb

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Automation grouping changes intended behavior with a stated reason (eb8a2d2: A separate, initially expanded failure group made failed automations discoverable even when Active and Paused were collapsed.)
  • Active and Paused presentation keeps the original intent (improve(ui): read Automations sidebar rows like Sessions #199829: Use collapsible status groups in the Sessions heading style and mark individual failed automations with a dot.)

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/sidebar-list-group.tsx:6 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/sidebar-list-group.tsx)
  • Vincent Koc: Raw commit 636a3a6 adds ui/src/components/app-sidebar-automations.test.ts:146 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 636a3a653a90; files: ui/src/components/app-sidebar-automations.test.ts)

PR surface

Source 0, Tests +12. Total +12 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 22 22 0
Tests 1 22 10 +12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 44 32 +12

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.

Labels

Label changes:

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

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-28T07:16:04.772Z sha a715206 :: passed. :: none

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
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@daniel-lxs
daniel-lxs merged commit 4824a26 into main Nov 28, 2026
94 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/restore-automation-groups branch November 28, 2026 12:24
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 04d84839-4059-4227-aebc-306898446074
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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

2 participants