Repository navigation
fix: remove unused exports after owner cutovers - #173991
Merged
Merged
Conversation
Hourly 38863277510 found exports left behind by recent owner refactors. Fresh main also exposes a retired queue preparation API and two Slack assertion helpers. Remove six uncovered exports at their owners: - Keep the Auto Review parameter schema and theme initial state private. - Register the chat bridge without exporting its unused component alias; exercise its existing registered host in both affected tests. - Inline the queue-clear preparation into its sole immediate caller, preserving selection, lane identity, rejection, and survivor ordering. Remove the stale abort mock and cover selective clearing through the API. - Keep two Slack assertion helpers private, retaining all their assertions. No Knip ignores, policy changes, retries, timeout changes, or removed test cases. Production exports fall from five to the one palette factory covered by active PR #173919; full-tree and script exports are clean. References: #173455, #173688, #173833. Production shrinks by nine lines. Proof: all three deadcode scripts, focused owner tests with --maxWorkers=1, core/UI/extension production types and owning test types, targeted lint, boundary lint, format, assertion safety, and isolated P2 review. Shared Slack helper proof runs its sole importer in full. New selective-clear case passes inside its seven-case file in 4.69s. The three unchanged global max-lines suppression findings are inherited, with base blobs verified. Changed-test wall times: chat-page 21.00s, snapshot custody 30.78s, abort 58.02s, queue cancellation 4.69s. The sole Slack helper importer passes all 90 tests in 75.86s. Total focused coverage: 205 cases.
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. |
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
Hourly 38863277510 found exports left behind by recent owner refactors. Fresh main also exposes a retired queue preparation API and two Slack assertion helpers. Remove six uncovered exports at their owners: - Keep the Auto Review parameter schema and theme initial state private. - Register the chat bridge without exporting its unused component alias; exercise its existing registered host in both affected tests. - Inline the queue-clear preparation into its sole immediate caller, preserving selection, lane identity, rejection, and survivor ordering. Remove the stale abort mock and cover selective clearing through the API. - Keep two Slack assertion helpers private, retaining all their assertions. No Knip ignores, policy changes, retries, timeout changes, or removed test cases. Production exports fall from five to the one palette factory covered by active PR openclaw#173919; full-tree and script exports are clean. References: openclaw#173455, openclaw#173688, openclaw#173833. Production shrinks by nine lines. Proof: all three deadcode scripts, focused owner tests with --maxWorkers=1, core/UI/extension production types and owning test types, targeted lint, boundary lint, format, assertion safety, and isolated P2 review. Shared Slack helper proof runs its sole importer in full. New selective-clear case passes inside its seven-case file in 4.69s. The three unchanged global max-lines suppression findings are inherited, with base blobs verified. Changed-test wall times: chat-page 21.00s, snapshot custody 30.78s, abort 58.02s, queue cancellation 4.69s. The sole Slack helper importer passes all 90 tests in 75.86s. Total focused coverage: 205 cases.
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 six uncovered unused exports that fail the deadcode checks after recent owner refactors, first reported in hourly 38863277510.
User Impact
No user-visible behavior change. The affected checks stop reporting these six exports; the separate palette factory remains covered by active PR #173919.
Why This Change Was Made
Keep the Auto Review schema, theme initial state, and two Slack assertion helpers private. Remove the retired queue preparation API by inlining its sole immediate caller, preserving selection, lane identity, rejection, and survivor order. Register the chat bridge without its unused component alias and exercise the existing registered host in both affected tests. No assertions, test cases, ignores, or timeout changes were removed or added to suppress failures. Production shrinks by nine lines.
History and PR bodies were checked, including #173455, #173688, and #173833. Fresh main history and open-PR diffs contain no competing fix for these six findings. The palette owner is intentionally untouched.
Evidence
All three deadcode scripts ran before and after: production unused exports fall from five to only the peer-covered palette factory; full-tree exports fall from four to zero; script exports and unused-file scans report zero. The dependency/export checks therefore still exit nonzero for that single covered palette item; this is not a claim that all of main is green.
All 205 focused cases pass, including the entire 90-case sole importer of the changed Slack test helper. Core, UI, and extension production types plus owning test-type lanes pass. Targeted lint, boundary lint, format, assertion safety, and isolated P2 review pass. Three unrelated global max-lines ratchet findings remain; their files and baseline are byte-identical to the proof base. No full Vitest configurations, full check-changed, architecture run, or full runtime/UI build were run.
Changed-test commands used
pnpm test <file> --maxWorkers=1: chat-page 21.00s; snapshot custody 30.78s; abort 58.02s; queue cancellation, including the new selective-clear case, 4.69s. Slack's sole helper importer passes in 75.86s. The two mechanical rebases preserved all nine changed files byte-for-byte; completed proof was retained.Published as a ready PR after two direct-main pushes lost races with concurrent main commits. No CI reruns or dispatches were requested.