Skip to content

fix: remove stale exports after runtime owner cutovers - #175354

Merged
steipete merged 1 commit into
mainfrom
ci/fix9-deadcode-batch3-20261017
Oct 17, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix9-deadcode-batch3-20261017

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 test with the eight affected owner/sibling files and --maxWorkers=1: 176 tests passed, 434.17 seconds wall time.
  • Core, UI and scripts typechecks passed; affected core test type graphs (agents-tools, state-logging, plugins-platform) passed.
  • Targeted type-aware lint, boundary lint, formatting and pnpm ui:validators:check passed. The initial UI lint command stopped during shared declaration preparation because local parse5 resolution failed; the same UI files passed the repository's source-backed type-aware lint configuration.
  • Production deadcode findings fell from 18 symbols/types to 7. These seven diagnostic reset hooks remain live test-isolation seams: refactor(logging): move diagnostic aggregate test resets into fixtures #175223 explicitly says they are retained for later cuts. Four staged MCP dependencies from build: prepare MCP v2 dependency foundation #175254 also remain; this PR does not undo that foundation.
  • The full-tree export scan still reports three unrelated test-support exports (observeRegistrationCommits, renderProgressCard, expectVisible). No ignores, baselines, retries or timeouts were added.
  • The scripts-only audit also flags the generated isSessionParticipantIdentity declaration. The baseline scripts configuration reproduces the identical finding; the runtime validator and its consumers are unchanged. No extra audit-root experiments are retained.
  • P2 autoreview completed with no actionable findings. PR CI supplies broad proof.

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.
@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review October 17, 2026 08:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T08:43:56.776624Z aba26e8 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui agents Agent runtime and tooling size: S labels Oct 17, 2026
@steipete
steipete merged commit e44bf4f into main Oct 17, 2026
222 of 228 checks passed
@steipete
steipete deleted the ci/fix9-deadcode-batch3-20261017 branch October 17, 2026 08:51
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant