Repository navigation
fix(ui): refresh automation alerts on cron events - #117648
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 6:03 PM ET / 22:03 UTC. ClawSweeper reviewWhat this changesRefreshes the Control UI sidebar’s automation-failure alert when the Gateway emits a cron change event, while avoiding unnecessary model-auth reloads and adding a stale-alert regression test. Merge readinessThe PR still addresses a real current-main defect: the sidebar refreshes only for connection changes or stale visibility checks, while the Automations page already refreshes on the existing Priority: P2 Review scores
Verification
How this fits togetherThe Control UI receives Gateway snapshots and event frames, then renders sidebar health chips from independently fetched automation and model-auth state. Automation changes already refresh the Automations page, but the sidebar’s separate snapshot currently remains stale until a reconnect, tab visibility refresh, or idle interval. flowchart LR
Gateway[Gateway cron change event] --> Store[Control UI gateway event subscribers]
Store --> Automations[Automations page refresh]
Store --> Sidebar[Sidebar attention refresh]
Sidebar --> CronList[Fetch current automation jobs]
CronList --> Chips[Updated failure alert chips]
ModelAuth[Model-auth snapshot] --> Chips
Decision needed
Why: The patch is technically sound, but the PR carries the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +25, Tests +54. Total +79 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Land the existing event-scoped sidebar refresh after the responsible Control UI owner approves the exact-head patch and required checks complete, keeping automation refreshes independent from model-auth refreshes. Do we have a high-confidence way to reproduce the issue? Yes—at source level: current main has no cron-event subscription in the sidebar, while the Automations page refreshes on that event; the supplied browser proof demonstrates the resulting stale-alert transition. Is this the best way to solve the issue? Yes—the patch reuses the existing Gateway event contract and mirrors the Automations page’s refresh trigger without adding configuration, a parallel data source, or an unnecessary model-auth request. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6cb833314bc3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Exact-head real browser proofHead: I served the immutable CI-built Control UI bundle in the Codex app browser with the repo's mock WebSocket Gateway implementation. The first Before the Gateway event:
After the Gateway event:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|


Summary
The visible wording is already
automation(s)on currentmainvia #114853; this fixes the separate stale-alert mismatch where the Automations page showed zero while the sidebar retained an older failure.Validation
pnpm test ui/src/components/sidebar-attention.test.ts— 11 passed on Blacksmith Testboxpnpm check:changed— passed formatting, i18n, typecheck, lint, and guards on Blacksmith Testbox.agents/skills/autoreview/scripts/autoreview --mode local— clean, no actionable findingsorigin/main; range-diff confirmed the patch was unchangedReal browser proof
61bb840a1454c9b8638bf28fec4c117140a15dc9dadbb6d39bc(same UI patch plus currentmain, including test(auto-reply): preserve plugin hook runner lifecycle exports #117647 for the unrelated CI mock collision)dist-runtime-buildfrom CI run 30719501315cron.listreturned 3 automations with 1 failed; both the Automations page and sidebar showed the failurecron.listto empty and emitted the existingcroneventBefore the Gateway event
After the Gateway event