Repository navigation
fix(ci): preserve offline build consumers in deadcode checks - #174358
Merged
Merged
Conversation
Hourly 38916811035 reported the route inventories as unused, but Vite loads them through runnerImport and embeds them in the offline shell. Keep that runtime contract and model the actual named property reads in Knip through its existing MJS compiler. Preserve Vite discovery and TypeScript declaration-to-source mapping; add no ignores. Make four remaining declarations private after #174279 and #174260 removed external logging consumers and #174255 consolidated fixtures. Their internal callers and behavior remain intact. I18nController was already removed by #174263. Proof: all three deadcode export scans have zero findings; the original baseline had six. The guard passes with pnpm test test/scripts/check-deadcode-exports.test.ts --maxWorkers=1 (5.67s). Existing route/build/cache tests and 148 owner/importer cases pass (199.76s for the owner batch). Owning typechecks, typed lint, boundary lint, and formatting pass. Negative control and P2 review recorded in PR evidence. P2 autoreview is scoped-clean with no actionable findings.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
steipete
marked this pull request as ready for review
October 16, 2026 15:15
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
…w#174358) Hourly 38916811035 reported the route inventories as unused, but Vite loads them through runnerImport and embeds them in the offline shell. Keep that runtime contract and model the actual named property reads in Knip through its existing MJS compiler. Preserve Vite discovery and TypeScript declaration-to-source mapping; add no ignores. Make four remaining declarations private after openclaw#174279 and openclaw#174260 removed external logging consumers and openclaw#174255 consolidated fixtures. Their internal callers and behavior remain intact. I18nController was already removed by openclaw#174263. Proof: all three deadcode export scans have zero findings; the original baseline had six. The guard passes with pnpm test test/scripts/check-deadcode-exports.test.ts --maxWorkers=1 (5.67s). Existing route/build/cache tests and 148 owner/importer cases pass (199.76s for the owner batch). Owning typechecks, typed lint, boundary lint, and formatting pass. Negative control and P2 review recorded in PR evidence. P2 autoreview is scoped-clean with no actionable findings.
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
Fixes the hourly dependency check reporting live offline route inventories as unused after #174043, alongside four stale export declarations left by logging and fixture cleanup.
User Impact
Offline navigation keeps using the build-owned route inventory. Runtime behavior is unchanged.
Why This Change Was Made
Vite loads the route module through
runnerImport, which Knip cannot infer. Model those actual property reads through the existing MJS compiler without disabling Vite discovery, changing TypeScript source resolution, or adding ignores. The model derives export names from the build source instead of maintaining an allowlist.The Discord formatter and Teams threshold remain internally used after #174279 and #174260 removed their external logging consumers. Two fixture constants no longer need exports after #174255. This change only makes those four declarations private.
I18nControllerwas already removed by #174263; the offline-route audit found no other dead path from #174043.Evidence
pnpm deadcode:exportschanged from six findings to zero across all three scans (111.88s). Removing only the actual offline-prefix consumer made the production scan report exactly that export (59.41s); the original source was restored byte for byte.pnpm test test/scripts/check-deadcode-exports.test.ts --maxWorkers=1passed (11 cases, 5.67s). Existing route, emitted-build-inventory, and service-worker tests passed (64 UI cases); all 148 Discord, Teams, worker-session, and image cases passed (199.76s), including every importer of the changed test helpers. UI, tooling, Discord, Teams, Gateway, and media typecheck lanes passed. Targeted typed lint, boundary lint, and formatting passed.No runtime build source, ignores, baselines, retries, or timeouts changed. PR CI supplies the broad proof.
P2 autoreview completed with no actionable findings.