Repository navigation
fix: remove stale exports after runtime owner cutovers - #175354
Merged
Merged
Conversation
The worktree read-pool, plugin cleanup and Solid UI cutovers left 11 unused exports/types or imports that Knip could not follow. Keep live read-operation maps in the same lazy parallel loader, make in-module helpers private, and remove unused forwarding exports and metadata type. Model the existing validator generator in the production Knip graph. Production cleanup moved to clearPluginRunContext in #174872. Remove its unused wrapper and exercise the owner directly; retain namespace isolation and all four scheduler cases. Drop only callback-result forwarding proof for that deleted wrapper. Live cleanup and handler maps are unchanged. Keep the seven diagnostic test seams retained by #175223 and the staged MCP dependencies from #175254; do not add ignores. Proof: 176 focused tests with --maxWorkers=1 passed in 434.17s; core, UI, scripts and affected test type lanes, targeted type-aware/boundary lint, formatting, and validator generation check passed. Production findings drop from 18 to seven intentional test seams; three unrelated full-tree test-support exports and staged dependencies remain.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 17, 2026 08:41
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 18, 2026
The worktree read-pool, plugin cleanup and Solid UI cutovers left 11 unused exports/types or imports that Knip could not follow. Keep live read-operation maps in the same lazy parallel loader, make in-module helpers private, and remove unused forwarding exports and metadata type. Model the existing validator generator in the production Knip graph. Production cleanup moved to clearPluginRunContext in openclaw#174872. Remove its unused wrapper and exercise the owner directly; retain namespace isolation and all four scheduler cases. Drop only callback-result forwarding proof for that deleted wrapper. Live cleanup and handler maps are unchanged. Keep the seven diagnostic test seams retained by openclaw#175223 and the staged MCP dependencies from openclaw#175254; do not add ignores. Proof: 176 focused tests with --maxWorkers=1 passed in 434.17s; core, UI, scripts and affected test type lanes, targeted type-aware/boundary lint, formatting, and validator generation check passed. Production findings drop from 18 to seven intentional test seams; three unrelated full-tree test-support exports and staged dependencies remain.
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 11 deadcode findings left by the worktree read-pool, plugin cleanup and Solid UI cutovers.
User Impact
No user-visible behavior changes. Worktree read handlers, plugin run cleanup, sidebar rendering and Escape handling retain their current owners and behavior.
Why This Change Was Made
Make three in-module worktree helpers and the sessions key handler private; remove two unused UI forwarding exports and an unused metadata type. Destructure the existing lazy worker imports so Knip sees the live operation maps. Register the existing UI-validator generator in the production graph instead of deleting the live schema metadata that it consumes.
PR #174872 deliberately moved production run-context cleanup to
clearPluginRunContext. Delete its unused forwarding wrapper and test the existing cleanup owner directly. The selected-namespace/sibling-namespace assertions and all four scheduler cases remain; only the deleted wrapper's trivial callback-result assertion disappears. The live cleanup implementation, production caller and both worktree handler maps are unchanged.Evidence
pnpm testwith the eight affected owner/sibling files and--maxWorkers=1: 176 tests passed, 434.17 seconds wall time.agents-tools,state-logging,plugins-platform) passed.pnpm ui:validators:checkpassed. The initial UI lint command stopped during shared declaration preparation because localparse5resolution failed; the same UI files passed the repository's source-backed type-aware lint configuration.observeRegistrationCommits,renderProgressCard,expectVisible). No ignores, baselines, retries or timeouts were added.isSessionParticipantIdentitydeclaration. The baseline scripts configuration reproduces the identical finding; the runtime validator and its consumers are unchanged. No extra audit-root experiments are retained.