Repository navigation
fix(build): avoid duplicate asset copies during merge conflict resolution - #148907
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 2:25 PM ET / 18:25 UTC (Revision 5). ClawSweeper reviewWhat this changesDevelopment builds reuse the shared plugin inventory to avoid copying static assets repeatedly while Git retains multiple merge-conflict stages, with regression coverage. Merge readiness✅ Ready for maintainer review This fix remains useful: current main and the latest release retain the duplicate-discovery path. No actionable correctness or security defects were found, and exact-head CI passed. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s build tooling reads plugin package declarations and copies their static files into build outputs. The shared inventory turns tracked metadata paths into one entry per plugin before asset discovery. flowchart TD
A[Git metadata paths] --> B[Shared plugin inventory]
B --> C[Packages with metadata]
D[Filesystem fallback] --> C
C --> E[Declared static assets]
E --> F[Build output copies]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +53, Other -36. Total +17 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one shared tracked-metadata inventory while preserving asset-specific package filtering, build selectors, and filesystem fallback. Do we have a high-confidence way to reproduce the issue? Yes, from source: retained Git index stages produce repeated package entries and repeated copies on current main. The regression fixture encodes that trigger; this reviewer did not execute it. Is this the best way to solve the issue? Yes. Reusing the existing directory-keyed inventory removes the duplicate scanner while preserving the asset adapter’s distinct contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 29069179def6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
…tion Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]>
e5553ac to
21da8de
Compare
|
Merged via squash.
|
…tion (openclaw#148907) Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Fixes repeated asset discovery and copying when a plugin’s working-tree
package.jsonis resolved but the Git index still contains multiple merge stages.User Impact
Development builds copy each package’s declared asset once in that state. Normal asset membership, copied bytes, malformed-package errors, custom-filesystem handling, and build selectors stay unchanged. No configuration, permission, or migration changes.
Why This Change Was Made
Static-asset discovery now consumes the existing tracked plugin-metadata inventory instead of maintaining its own Git/deleted-file scanner. Package-only filtering remains in the asset adapter; all-file build discovery and filesystem-only generated-asset discovery retain their distinct contracts. This removes 36 net production lines without adding another mode, cache, or manager.
Evidence
21da8de8782e37742655d8b23f810dee1adb0987; all passed. All three changed file blobs and the patch identity match the independently reviewed implementation.e5553ac6fab9included 125 focused tests, all 22 changed checks, both full builds, and unchanged hashes for 16 normal static assets. These historical results are not labeled as fresh-head CI.Previous baseline failure
Run 34946426677 failed on duplicate secrets-test shard assignments inherited from main’s #148889, not this three-file asset delta. The historical failure is retained. Main was repaired through #148826; no CI gate was overridden.
Worked on by: @steipete, @vincentkoc
Work session: https://team.openclaw.ai/chat/roboclaw/dashboard/87f70663-f8cc-4245-b720-dd460489dc35