Repository navigation
fix: restore Control UI export validation - #179879
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The Control UI route-module shape still emitted a private
headerfield 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 liverenderSolidconsumer 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
headerat its complete producer boundary instead of suppressing one reported export or changing dead-code configuration. ShareddefineSolidPageroutes, 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 sameload(context)call, while its component result now exposes onlyrenderSolidandrenderSidebar.Evidence
pnpm deadcode:exportsno longer reports eitherheaderorrenderSolidfromcron-page-entry.tsx, and narrowing Systems introduces no loader/export residual. The aggregate remains nonzero for unrelated existing rows outside this PR.