Repository navigation
refactor(ui): consolidate Cron form control rendering - #117576
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 3:18 PM ET / 19:18 UTC. ClawSweeper reviewWhat this changesThe PR replaces repeated Cron-page input, select, and toggle templates with typed page-owned render helpers and expands regression coverage for form events and channel-label fallback behavior. Merge readinessNo concrete correctness or security defect was found in the typed Cron control consolidation. Keep this PR open because its Priority: P3 Review scores
Verification
How this fits togetherThe Control UI Cron page renders automation forms and sends field patches to its page owner. The page owner normalizes and validates those patches before the UI submits Cron changes through the Gateway. flowchart LR
A[Operator opens Cron page] --> B[Control UI Cron renderer]
B --> C[Typed form controls]
C --> D[Page-owned form patch]
D --> E[Normalize and validate form]
E --> F[Gateway Cron requests]
F --> G[Automation state and history]
Decision needed
Why: The patch is protected by the Before merge
Agent review detailsSecurityNone. PR surfaceSource -301, Tests +19. Total -282 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one typed, page-owned Cron control flow, preserve the existing normalize-and-validate patch boundary, and land it only after a maintainer accepts the current clean merge result. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a refactor rather than a reported broken behavior. The PR does provide high-confidence after-fix Chromium coverage for the retained Cron form interactions. Is this the best way to solve the issue? Yes: the typed helpers remain inside the existing Cron page owner and continue using its canonical patch, normalization, and validation flow, avoiding a competing form abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bf99e43ee7d3. LabelsLabel 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)
|
|
Merged via squash.
|
* commit '81e392b7ff43bcdb7a3be50a99adf65c3b0141b5': fix(channels): preserve filters in offline status diagnostics (#117570) perf(gateway): separate startup maintenance timing (#117577) refactor(tests): deduplicate database-first guard fixtures (#117594) fix(cli): align sessions cleanup label summary by visible width (#117459) perf(gateway): skip empty session reconciliation (#117589) refactor(ui): consolidate cron form control rendering (#117576) fix(memory): recover restored session freshness (#117548) fix(ui): preserve Talk transcript surrogate bounds fix(ui): harden Talk transcript marker bounds test(ui): cover bounded realtime Talk entries fix(ui): bound realtime Talk conversation text
* origin/main: (22 commits) refactor(ui): consolidate cron form control rendering (#117576) fix(memory): recover restored session freshness (#117548) fix(whatsapp): normalize future-proof QA poll and video note ingress (#117579) fix(perf): separate warm and first-device health probes (#117525) fix(ci): repair plugin prerelease validation (#117562) fix(tasks): sanitize every human task and flow detail (#117568) fix(feishu): cancel unread streaming-card error bodies before release (#117312) fix(status): honor explicit local RPC fallback timeouts (#117519) fix(ui): preserve Talk transcript surrogate bounds fix(tasks): validate notification policy before persistence (#117554) refactor: consolidate full release child workflows (#117385) refactor(policy): centralize doctor health-check descriptors (#117578) perf(gateway): mark recovery before model preparation (#117544) fix(ui): harden Talk transcript marker bounds test(openai): parse realtime websocket frames safely fix(openai): keep embedding identity stable across upgrades (#117557) fix(googlechat): drop invalid thread resource names before send (#108324) test(ui): cover bounded realtime Talk entries fix(ui): bound realtime Talk conversation text test(ui): cover reentrant Talk meter cleanup ...
* origin/main: (28 commits) refactor(ui): consolidate cron form control rendering (openclaw#117576) fix(memory): recover restored session freshness (openclaw#117548) fix(whatsapp): normalize future-proof QA poll and video note ingress (openclaw#117579) fix(perf): separate warm and first-device health probes (openclaw#117525) fix(ci): repair plugin prerelease validation (openclaw#117562) fix(tasks): sanitize every human task and flow detail (openclaw#117568) fix(feishu): cancel unread streaming-card error bodies before release (openclaw#117312) fix(status): honor explicit local RPC fallback timeouts (openclaw#117519) fix(ui): preserve Talk transcript surrogate bounds fix(tasks): validate notification policy before persistence (openclaw#117554) refactor: consolidate full release child workflows (openclaw#117385) refactor(policy): centralize doctor health-check descriptors (openclaw#117578) perf(gateway): mark recovery before model preparation (openclaw#117544) fix(ui): harden Talk transcript marker bounds test(openai): parse realtime websocket frames safely fix(openai): keep embedding identity stable across upgrades (openclaw#117557) fix(googlechat): drop invalid thread resource names before send (openclaw#108324) fix(skills): preserve profile in ClawHub command hints (openclaw#117555) fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556) fix(irc): strip markdown from outbound text (openclaw#112961) ...
* origin/main: (22 commits) refactor(ui): consolidate cron form control rendering (openclaw#117576) fix(memory): recover restored session freshness (openclaw#117548) fix(whatsapp): normalize future-proof QA poll and video note ingress (openclaw#117579) fix(perf): separate warm and first-device health probes (openclaw#117525) fix(ci): repair plugin prerelease validation (openclaw#117562) fix(tasks): sanitize every human task and flow detail (openclaw#117568) fix(feishu): cancel unread streaming-card error bodies before release (openclaw#117312) fix(status): honor explicit local RPC fallback timeouts (openclaw#117519) fix(ui): preserve Talk transcript surrogate bounds fix(tasks): validate notification policy before persistence (openclaw#117554) refactor: consolidate full release child workflows (openclaw#117385) refactor(policy): centralize doctor health-check descriptors (openclaw#117578) perf(gateway): mark recovery before model preparation (openclaw#117544) fix(ui): harden Talk transcript marker bounds test(openai): parse realtime websocket frames safely fix(openai): keep embedding identity stable across upgrades (openclaw#117557) fix(googlechat): drop invalid thread resource names before send (openclaw#108324) test(ui): cover bounded realtime Talk entries fix(ui): bound realtime Talk conversation text test(ui): cover reentrant Talk meter cleanup ...
* origin/main: (28 commits) refactor(ui): consolidate cron form control rendering (openclaw#117576) fix(memory): recover restored session freshness (openclaw#117548) fix(whatsapp): normalize future-proof QA poll and video note ingress (openclaw#117579) fix(perf): separate warm and first-device health probes (openclaw#117525) fix(ci): repair plugin prerelease validation (openclaw#117562) fix(tasks): sanitize every human task and flow detail (openclaw#117568) fix(feishu): cancel unread streaming-card error bodies before release (openclaw#117312) fix(status): honor explicit local RPC fallback timeouts (openclaw#117519) fix(ui): preserve Talk transcript surrogate bounds fix(tasks): validate notification policy before persistence (openclaw#117554) refactor: consolidate full release child workflows (openclaw#117385) refactor(policy): centralize doctor health-check descriptors (openclaw#117578) perf(gateway): mark recovery before model preparation (openclaw#117544) fix(ui): harden Talk transcript marker bounds test(openai): parse realtime websocket frames safely fix(openai): keep embedding identity stable across upgrades (openclaw#117557) fix(googlechat): drop invalid thread resource names before send (openclaw#108324) fix(skills): preserve profile in ClawHub command hints (openclaw#117555) fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556) fix(irc): strip markdown from outbound text (openclaw#112961) ...
* commit '58213dd5389737ff100c6286d110921defeb76e8': fix(channels): preserve filters in offline status diagnostics (openclaw#117570) perf(gateway): separate startup maintenance timing (openclaw#117577) refactor(tests): deduplicate database-first guard fixtures (openclaw#117594) fix(cli): align sessions cleanup label summary by visible width (openclaw#117459) perf(gateway): skip empty session reconciliation (openclaw#117589) refactor(ui): consolidate cron form control rendering (openclaw#117576) fix(memory): recover restored session freshness (openclaw#117548) fix(ui): preserve Talk transcript surrogate bounds fix(ui): harden Talk transcript marker bounds test(ui): cover bounded realtime Talk entries fix(ui): bound realtime Talk conversation text
Summary
Root cause and repair
The Cron page reimplemented field IDs, options, values, DOM event patches, validation, and filters across each field, duplicating the ownership contract and allowing sibling controls to drift. One typed page-owned control flow now derives the canonical field behavior; the two intentionally raw literal placeholders retain their original Lit template classification. Existing first-seen channel deduplication now uses the canonical normalization helper, and empty channel metadata labels still fall back exactly as before.
Direct after-fix browser behavior artifact
Exact reviewed commit:
92db5032b0e2fe2b95bf15c40c54bc04779a72f9. This is captured terminal output from an actual Linux Chromium browser loading the actual Control UI server and communicating with the existing mock Gateway RPC harness; no claim of a live external provider or live channel is intended. The browser fills and submits real DOM controls and the harness asserts actualcron.list/mutation request payloads.Independent hosted exact-head browser proof also passed across all four Chromium shards: 1/4, 2/4, 3/4, 4/4.
Validation
pnpm check:changedon Blacksmith Testbox: passed, including UI/core-test TypeScript, typed lint, production/full-tree/script unused-export scans, localization baseline, formatting, and guardspnpm buildon Blacksmith Testbox: passed, including optimized Control UI production build, 692 compressed sidecars, and startup performance budgetspnpm test ui/src/pages/cron/view.test.ts ui/src/pages/cron/cron-page.test.ts ui/src/lib/cron/index.test.ts: 160 passedpnpm test:ui:e2e ui/src/e2e/cron-filters.e2e.test.ts: 10 real Chromium/mock-Gateway scenarios passed; direct terminal evidence abovepnpm ui:i18n:verify: passed with unchanged raw-copy baseline and no localization artifact changesClawSweeper rank-up moves