Skip to content

fix: restore Control UI export validation - #179879

Merged
shakkernerd merged 2 commits into
mainfrom
ui-route-module-contract
Oct 21, 2026
Merged

shakkernerd merged 2 commits into
mainfrom
ui-route-module-contract

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Control UI route-module shape still emitted a private header field that the application route contract and outlet no longer read. The same stale field appeared in shared and manual route producers, while namespace returns also exposed members outside the outlet contract: cron's live renderSolid consumer was hidden from export analysis, and Systems returned its loader function alongside its renderers.

User Impact

There is no user-visible behavior change. Route loading, cron preloading, page rendering, sidebar ownership, retained-page lifecycle, and live loader-prop updates remain the same. The internal module shape now reflects only the behaviors the outlet actually consumes, allowing export validation to distinguish dead metadata from cron's live renderer.

Why This Change Was Made

This removes header at its complete producer boundary instead of suppressing one reported export or changing dead-code configuration. Shared defineSolidPage routes, manual route objects, chat and cron entry modules, the sole false option, and the directly coupled fixture all use the same smaller contract.

Cron still imports the same entry module and awaits the same CronPage.preload() call. Its loader now returns { renderSolid: entry.renderSolid }, making the existing consumer explicit without moving the lazy boundary or changing the renderer function. Systems likewise keeps one shared lazy import and the same load(context) call, while its component result now exposes only renderSolid and renderSidebar.

Evidence

  • Remote changed-file formatting, lint, and Control UI i18n verification passed.
  • Remote affected TypeScript graphs passed, including UI and direct test consumers.
  • Remote focused tests passed: 5 files and 48 tests covering lazy route loading/live props, router-outlet mount retention, config route fixtures, actual cron navigation/rendering, and both Systems render consumers.
  • pnpm deadcode:exports no longer reports either header or renderSolid from cron-page-entry.tsx, and narrowing Systems introduces no loader/export residual. The aggregate remains nonzero for unrelated existing rows outside this PR.
  • No screenshot or recording is included because the removed metadata had no runtime reader and this PR intentionally changes no rendered state. Hosted CI and independent review continue on this exact head.

@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@shakkernerd shakkernerd self-assigned this Oct 21, 2026
@shakkernerd
shakkernerd merged commit 4102af4 into main Oct 21, 2026
78 of 80 checks passed
@shakkernerd
shakkernerd deleted the ui-route-module-contract branch October 21, 2026 20:49
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Simplified: Control UI route modules now expose only their live renderer and lifecycle contract.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
Removed obsolete Control UI route metadata and narrowed lazy route modules to the renderer and lifecycle contract consumed by the outlet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant