Skip to content

fix: remove unused exports after owner migrations - #170660

Merged
steipete merged 3 commits into
mainfrom
dbasync/redmain-knip-cleanup
Oct 13, 2026
Merged

steipete merged 3 commits into
mainfrom
dbasync/redmain-knip-cleanup

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Scheduled main CI fails Knip after consumer migrations leave private exports and retired Lit adapters behind. The failing run is https://github.com/openclaw/openclaw/actions/runs/38347821426 (job115133357402).

Keep KNN request validation internal after #170596; remove the duplicate session publication type re-export; delete unused Lit adapters and device icon fixtures left by #169692, #168779, and #168887. Existing UI tests now exercise the same Solid components directly through their established test bridge. All tests and assertions remain.

The session export dates to #163030; the precise last-consumer removal is not established. No runtime behavior, SQL, schema, or security checks change. No warmed-path or T1 reduction is claimed and no SQL harness was run. Twenty-one files, +84/-148 lines.

Evidence

One Codex review found no actionable issues; changed-file formatting/lint and diff checks pass. PR CI 38349558864 passed (42 successful jobs, 23 skipped), including types, lint, architecture, and the aggregate gate. All seven changed UI test files passed: 116 cases. Supplemental 38350016267 ran only the three Knip checks on the exact candidate: dependencies (220s), unused files (127s), and exports (148s), all successful with zero findings. Madge found zero cycles; T1 remained 455 live / 9 compatibility calls and all dialect groups remained zero. No local suite or broad static scan was run.

The child runner now delegates request validation to runVectorKnnQuery. Retain that validation at its execution boundary and remove the unused module export reported by scheduled-main Knip.
Keep the replacement publication contract at its canonical type owner and entry-cache facade. The extra publication-module re-export has no consumers and fails scheduled-main Knip.
Complete the composer, transcript, and New Session Solid cutovers by removing private adapters and icon templates without production callers. Keep local Solid components private and preserve custom-element registration. Move existing test callers to the same Solid components through the retained interop owner, retaining dictation, permission, and icon-shape assertions.
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-13T05:07:48.882653Z a6a0626 PR opened
ℹ️ 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 extensions: memory-core Extension: memory-core size: M labels Oct 13, 2026
@steipete
steipete merged commit bda83ac into main Oct 13, 2026
135 of 137 checks passed
@steipete
steipete deleted the dbasync/redmain-knip-cleanup branch October 13, 2026 05:23
steipete added a commit that referenced this pull request Oct 13, 2026
The Vitest 5 migration loads its report-capture constructor through a
CLI file path, which the script export scan cannot resolve. Register
that existing reporter path with a literal lazy import in the redacting
loader, preserving the constructor, options and forwarding lifecycle.

No Knip ignore, eager loading, test suppression or user-visible change.
The original Solid leftovers are covered by #170660; #170680 owns the
separate permission-card export repair.
steipete added a commit that referenced this pull request Oct 13, 2026
* fix(test): expose lazy report capture to export analysis

The Vitest 5 migration loads its report-capture constructor through a
CLI file path, which the script export scan cannot resolve. Register
that existing reporter path with a literal lazy import in the redacting
loader, preserving the constructor, options and forwarding lifecycle.

No Knip ignore, eager loading, test suppression or user-visible change.
The original Solid leftovers are covered by #170660; #170680 owns the
separate permission-card export repair.

* test(tooling): register Bun SQLite regression fixture

#170519's Bun existing-store regression launches this source helper by
path. Register that exact execution entry in the full-tree Knip audit
so its live update-executor regression is retained without an ignore.

The unchanged opt-in Bun regression and deadcode checker tests pass.
No runtime, update behavior, assertions or timeouts change.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
Remove unused Lit adapters and duplicate exports left by completed consumer migrations. Keep KNN validation private and exercise the existing Solid owners through their established test bridge; retain all tests and assertions.

PR CI 38349558864 passed, including 116 cases across seven changed UI test files. Exact-candidate Knip dependency, unused-file and export scans passed in 38350016267. Scoped Codex review clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…70701)

* fix(test): expose lazy report capture to export analysis

The Vitest 5 migration loads its report-capture constructor through a
CLI file path, which the script export scan cannot resolve. Register
that existing reporter path with a literal lazy import in the redacting
loader, preserving the constructor, options and forwarding lifecycle.

No Knip ignore, eager loading, test suppression or user-visible change.
The original Solid leftovers are covered by openclaw#170660; openclaw#170680 owns the
separate permission-card export repair.

* test(tooling): register Bun SQLite regression fixture

openclaw#170519's Bun existing-store regression launches this source helper by
path. Register that exact execution entry in the full-tree Knip audit
so its live update-executor regression is retained without an ignore.

The unchanged opt-in Bun regression and deadcode checker tests pass.
No runtime, update behavior, assertions or timeouts change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui extensions: memory-core Extension: memory-core size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant