Skip to content

refactor(ui): consolidate Cron form control rendering - #117576

Merged
steipete merged 1 commit into
mainfrom
codex/goal100k-ui-sessions-page-owner-0801-2d45
Aug 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/goal100k-ui-sessions-page-owner-0801-2d45

Conversation

@steipete

@steipete steipete commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • consolidate Cron form input, select, toggle, validation, stable DOM IDs, and advanced filter rendering under the existing page owner
  • preserve exact accessibility/error wiring, literals/localization inventory, Gateway payloads, channel labels, schedule visibility, and browser behavior
  • remove 301 handwritten production lines; add 19 focused regression-test lines (282 fewer lines overall)

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 actual cron.list/mutation request payloads.

$ pnpm test:ui:e2e ui/src/e2e/cron-filters.e2e.test.ts
[ui-e2e] Using system Chromium at /usr/bin/chromium-browser.

 RUN  v4.1.10 /home/runner/_work/openclaw/openclaw

 ✓ ui-e2e ui/src/e2e/cron-filters.e2e.test.ts (10 tests) 11262ms
   ✓ suggests browser-supported timezones without restricting free-form input
   ✓ sends cron job table filters through the Gateway and renders the filtered page
   ✓ keeps read-only operators on Cron browse and history surfaces
   ✓ keeps the newest visible overview when an older history search resolves last
   ✓ keeps selected task history when a deferred overview refresh resolves last
   ✓ saves and displays agent-turn model overrides
   ✓ creates and edits agent-turn jobs with an explicit zero timeout
   ✓ defaults recurring jobs converted to one-time cleanup
   ✓ shows why a requested run was not started
   ✓ supports skip navigation and keyboard tab activation

 Test Files  1 passed (1)
      Tests  10 passed (10)

Independent hosted exact-head browser proof also passed across all four Chromium shards: 1/4, 2/4, 3/4, 4/4.

Validation

  • independent maintainer source review: clean, including stable IDs, Lit attribute presence/removal, validation accessibility, channel label truthiness, and unchanged localization inventory
  • pnpm check:changed on Blacksmith Testbox: passed, including UI/core-test TypeScript, typed lint, production/full-tree/script unused-export scans, localization baseline, formatting, and guards
  • pnpm build on Blacksmith Testbox: passed, including optimized Control UI production build, 692 compressed sidecars, and startup performance budgets
  • pnpm test ui/src/pages/cron/view.test.ts ui/src/pages/cron/cron-page.test.ts ui/src/lib/cron/index.test.ts: 160 passed
  • pnpm test:ui:e2e ui/src/e2e/cron-filters.e2e.test.ts: 10 real Chromium/mock-Gateway scenarios passed; direct terminal evidence above
  • pnpm ui:i18n:verify: passed with unchanged raw-copy baseline and no localization artifact changes

ClawSweeper rank-up moves

  1. Attach direct after-fix browser/terminal evidence: satisfied by the unredacted non-sensitive Chromium terminal artifact and exact-head hosted browser-job links above.
  2. Confirm latest rank-up moves with a maintainer: latest review and both moves were read; independent maintainer source review completed before publication.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 3:18 PM ET / 19:18 UTC.

ClawSweeper review

What this changes

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

⚠️ Ready for maintainer review - 3 items remain

No concrete correctness or security defect was found in the typed Cron control consolidation. Keep this PR open because its maintainer label requires an explicit human merge decision; the submitted after-fix Chromium evidence and focused coverage address the prior proof request.

Priority: P3
Reviewed head: 92db5032b0e2fe2b95bf15c40c54bc04779a72f9
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A well-supported behavior-preserving refactor with direct browser-harness evidence and no actionable source finding; the remaining gate is protected-label maintainer review.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body supplies exact-head terminal output from Chromium exercising the actual Control UI server and mock Gateway RPC harness, with ten passing Cron scenarios and successful hosted Chromium shards; redact private details if later replacing this evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body supplies exact-head terminal output from Chromium exercising the actual Control UI server and mock Gateway RPC harness, with ten passing Cron scenarios and successful hosted Chromium shards; redact private details if later replacing this evidence.
Evidence reviewed 6 items Typed page-owned control boundary: The branch defines typed string and boolean Cron field helpers, keeping IDs, form values, and event patches in the existing Cron page renderer rather than introducing a cross-page abstraction.
Existing owner still validates every patch: The current Cron page owner applies each form patch through canonical normalization and validation before requesting a UI update, so the refactor preserves the established state boundary.
Focused interaction coverage: The branch extends the existing view test to exercise shared text controls, placeholders, select updates, and empty channel-metadata fallback behavior.
Findings None None.
Security None None.

How this fits together

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

Decision needed

Question Recommendation
Should a maintainer accept this large but behavior-preserving Control UI Cron form refactor on GitHub's current clean merge result? Accept the page-owned refactor: Merge after normal maintainer confirmation that the current clean merge result still matches the reviewed exact head and retained Cron interaction contract.

Why: The patch is protected by the maintainer label, so this workflow must pause for a human merge decision even though the inspected code and after-fix evidence reveal no actionable defect.

Before merge

  • Resolve merge risk (P1) - A complete parent-based local diff check could not be rerun because this partial clone could not hydrate one historical blob while GitHub DNS was unavailable; the exact branch blobs, current-main owner path, supplied CI, and proof were still inspected.
  • Complete next step (P2) - No mechanical repair is indicated; the protected maintainer label requires explicit human merge handling.
Agent review details

Security

None.

PR surface

Source -301, Tests +19. Total -282 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 373 674 -301
Tests 1 25 6 +19
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 398 680 -282

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

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

Labels

Label justifications:

  • P3: This is a UI maintainability refactor with no evidenced user-facing regression, security impact, or urgent delivery risk.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body supplies exact-head terminal output from Chromium exercising the actual Control UI server and mock Gateway RPC harness, with ten passing Cron scenarios and successful hosted Chromium shards; redact private details if later replacing this evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies exact-head terminal output from Chromium exercising the actual Control UI server and mock Gateway RPC harness, with ten passing Cron scenarios and successful hosted Chromium shards; redact private details if later replacing this evidence.

Evidence

What I checked:

  • Typed page-owned control boundary: The branch defines typed string and boolean Cron field helpers, keeping IDs, form values, and event patches in the existing Cron page renderer rather than introducing a cross-page abstraction. (ui/src/pages/cron/view.ts:285, 92db5032b0e2)
  • Existing owner still validates every patch: The current Cron page owner applies each form patch through canonical normalization and validation before requesting a UI update, so the refactor preserves the established state boundary. (ui/src/pages/cron/cron-page.ts:266, bf99e43ee7d3)
  • Focused interaction coverage: The branch extends the existing view test to exercise shared text controls, placeholders, select updates, and empty channel-metadata fallback behavior. (ui/src/pages/cron/view.test.ts:605, 92db5032b0e2)
  • After-fix browser proof: The PR body provides exact-head terminal output for ten Chromium scenarios against the actual Control UI server and mock Gateway RPC harness, including Cron mutation-payload assertions; the supplied check context also records all four Chromium E2E shards as successful. (92db5032b0e2)
  • Current-main and release provenance: The branch commit is not contained by current main or a local release tag, so this refactor remains necessary as an open PR rather than being implemented on main. (92db5032b0e2)
  • Area provenance: Current Cron view and page-owner history is predominantly associated with Peter Steinberger; the inspected current owner path dates to the recent Cron-area commit shown below. (ui/src/pages/cron/cron-page.ts:377, 7ab05df415a4)

Likely related people:

  • steipete: The current Cron view, page owner, and adjacent test history are predominantly authored by Peter Steinberger; the current render path is also blamed to his recent Cron-area work. (role: recent area contributor and current-main feature owner; confidence: high; commits: 7ab05df415a4, 92db5032b0e2; files: ui/src/pages/cron/view.ts, ui/src/pages/cron/cron-page.ts, ui/src/pages/cron/view.test.ts)
  • Vincent Koc: Feature-history sampling shows several recent contributions across the central Cron page paths, making this a secondary routing contact if broader UI behavior needs confirmation. (role: recent adjacent contributor; confidence: medium; commits: 992aa458aba5, b993cf1b9965; files: ui/src/pages/cron/view.ts, ui/src/pages/cron/cron-page.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-01T19:08:34.500Z sha 92db503 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 1, 2026
@steipete
steipete merged commit 26aa884 into main Aug 1, 2026
191 of 209 checks passed
@steipete
steipete deleted the codex/goal100k-ui-sessions-page-owner-0801-2d45 branch August 1, 2026 19:41
@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 1, 2026
* 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
vincentkoc added a commit that referenced this pull request Aug 1, 2026
* 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
  ...
pull Bot pushed a commit to zhenglee1984/openclaw that referenced this pull request Aug 1, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* 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
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* 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
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

1 participant