Repository navigation
fix(ui): surface auto-disabled automations instead of hiding them as paused - #123769
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 14, 2026, 3:08 PM ET / 19:08 UTC. ClawSweeper reviewWhat this changesThe PR labels auto-disabled automations distinctly in the Control UI, marks them as active failures, and adds focused UI regression tests. Merge readiness⛔ Blocked by patch quality or review findings - 7 items remain Keep this PR open: it improves row and sidebar visibility, but the Failing statistic still excludes the same auto-disabled jobs, and singular schedule-error copy is grammatically wrong. Priority: P2 Review scores
Verification
How this fits togetherThe scheduler records an auto-disable reason and disables the automation; the Gateway exposes that state to the Control UI. The UI uses it in automation rows, sidebar attention, and the Failing summary statistic. flowchart LR
A[Scheduler failure] --> B[Auto-disabled automation state]
B --> C[Gateway automation list]
C --> D[Control UI failure logic]
D --> E[Row and sidebar alert]
C --> F[Failing summary statistic]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +32, Tests +38. Total +70 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Expose one Gateway-owned active-failure count or filter, consume it in the Failing statistic, use count-aware auto-disabled copy, and attach redacted browser proof of paused versus auto-disabled states. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: auto-disable writes enabled=false with state.autoDisabled, while the Failing query accepts only enabled error jobs. No live execution was performed in this read-only review. Is this the best way to solve the issue? No. The row/sidebar change is sound, but the best fix keeps the active-failure predicate at the Gateway summary boundary and repairs singular display copy. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3289e08c3005. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
…paused An auto-disabled job (10 consecutive run failures / 3 schedule errors) rendered as plain 'Paused' and simultaneously vanished from the failed chip, the failing count, and the error dot — the escalation removed visibility exactly when the problem became permanent. The recorded fact (state.autoDisabled, already public and used by CLI/doctor) now renders as a distinct danger note with the reason and count, and auto-disabled jobs stay in the active-failure predicate.
1d43ab5 to
b4fb276
Compare
|
Merged via squash.
|
…paused (openclaw#123769) An auto-disabled job (10 consecutive run failures / 3 schedule errors) rendered as plain 'Paused' and simultaneously vanished from the failed chip, the failing count, and the error dot — the escalation removed visibility exactly when the problem became permanent. The recorded fact (state.autoDisabled, already public and used by CLI/doctor) now renders as a distinct danger note with the reason and count, and auto-disabled jobs stay in the active-failure predicate.
What Problem This Solves
An automation that auto-disables (10 consecutive run failures, or 3 schedule errors) is indistinguishable from an operator-paused job in the Control UI — it renders as plain "Paused" — and simultaneously drops out of every failure surface: the failed sidebar chip, the failing count, and the row's error dot all require
enabled. The escalation removes visibility exactly when the problem became permanent. The recorded fact (state.autoDisabledwith reason + count) is durable, public, and already used by the CLI (computeStatus) and doctor — but no web UI code read it.Why This Change Was Made
Two coherent changes at the owning surfaces:
ui/src/lib/cron-status.ts(shared status owner):isCronJobActiveFailurenow treatsstate.autoDisabledas an active failure regardless ofenabled— auto-disable is the escalated failure state, not an operator pause (invariant comment added). Operator-paused jobs with historical errors stay unflagged, as before.ui/src/pages/cron/view.ts: the disabled note renders "Auto-disabled · N run failures/schedule errors" in danger color with the last error as tooltip, instead of the generic "Paused"; the row keeps its error dot via the predicate change.User Impact
Operators can see that an automation was auto-disabled, why, and after how many failures — and auto-disabled jobs keep raising the failed chip until acted on.
Evidence
cron-status.test.ts, newview-auto-disabled.test.ts; plusview.test.ts(44) andsidebar-attention.test.ts(15) green.pnpm tsgo:uiclean; oxfmt/oxlint clean.Known residual (named follow-up, server-side): the stats-card failing count uses a server-filtered
enabled+errorquery (loadCronFailingCount) and one-shot retry-exhausted jobs never get anautoDisabledrecord at all (timer-outcomes.ts); both need gateway-side changes and are out of scope for this UI-truth fix.Production LOC delta: +30 (distinct disabled-state renderer + predicate branch + locale strings + CSS, comment-weighted per repo policy); tests +44.