Repository navigation
fix(update): skip npm package.json check for bundle-format plugins in smoke check - #98071
xydt-tanshanshan wants to merge 1 commit into
Conversation
… smoke check Bundle-format plugins (Claude-plugin layout: .claude-plugin/plugin.json + skills/) ship without package.json. The post-update smoke check treated the missing package.json as a failure, causing 'openclaw update' to exit 1 and leave the gateway unloaded. Detect bundle plugins via clawhubFamily=bundle-plugin or by the presence of .claude-plugin/plugin.json, and validate the bundle manifest instead of requiring npm-style package.json. Fixes openclaw#97985 Co-Authored-By: Claude <[email protected]>
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close: the useful smoke-check idea is superseded by #97990, which covers the same user report, changes both update-time payload gates, is live-clean/mergeable, and has positive after-fix production-function proof. This PR only updates the later smoke check and would still leave the earlier missing-payload collector on the package-json-only path. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Use #97990 as the canonical fix, or land an equivalent branch that updates both updater payload gates while preserving native package validation. So I’m closing this here and keeping the remaining discussion on #97990. Review detailsBest possible solution: Use #97990 as the canonical fix, or land an equivalent branch that updates both updater payload gates while preserving native package validation. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main's collector and smoke check still require Is this the best way to solve the issue? No. This is a plausible partial fix, but the best fix must also update Security review: Security review cleared: No concrete security or supply-chain regression was found; the diff reads local bundle manifest JSON and adds tests without changing dependencies, workflows, permissions, or secret handling. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 56c2d637d940. |
|
ClawSweeper applied the proposed close for this PR.
|
What Problem This Solves
openclaw updatefailed with exit 1 and left the gateway unloaded when bundle-format plugins (.claude-plugin/plugin.jsonlayout, nopackage.json) were present in~/.openclaw/extensions/. The post-update plugin smoke check only recognized npm-format plugins and treated the missingpackage.jsonas a fatal error.Summary
missing-package-jsonduring update smoke check, causing gateway outageclawhubFamily: "bundle-plugin"or.claude-plugin/plugin.jsonpresence, validate the bundle manifest instead of requiring npm-stylepackage.jsonsrc/cli/update-cli/plugin-payload-validation.ts— bundle detection before package.json check;plugin-payload-validation.test.ts— 4 new testsmissing-extension-entryandmissing-main-entrychecks untouchedEvidence
25 tests pass (21 existing + 4 new bundle plugin tests):
Bundle plugin behavior matrix:
clawhubFamily=bundle-plugin+ valid manifest.claude-plugin/plugin.jsonpresent (no clawhubFamily)clawhubFamily=bundle-plugin+ missing manifestclawhubFamily=bundle-plugin+ unparseable manifestSecurity Impact
AI Assistance
Fixes #97985