Repository navigation
fix(plugins): serialize lifecycle mutations and preserve setup-required installs - #112763
Merged
steipete merged 4 commits intoJul 23, 2026
Merged
Conversation
steipete
marked this pull request as ready for review
July 22, 2026 21:26
Contributor
Author
|
Land-ready verification for exact head
Known proof gaps: none for the changed plugin lifecycle behavior. The current ClawSweeper comment is an expired |
steipete
force-pushed
the
steipete/plugin-installation-stress-testing-da12ec
branch
from
July 23, 2026 02:34
2053d86 to
a26d119
Compare
Contributor
Author
|
Merged via squash.
|
This was referenced Jul 23, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
…ed installs (openclaw#112763) * fix(plugins): harden concurrent lifecycle mutations * fix(update): preserve post-core restart snapshot * fix(update): retain authoritative plugin records on resume * fix(update): reconcile plugin records after handoff
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.
Closes #112718
Closes #112719
AI-assisted implementation and review.
What Problem This Solves
Fixes two plugin lifecycle failures found through install/uninstall stress testing:
config changed since last loadafter lifecycle work had begun.Why This Change Was Made
Plugin artifact mutation, the shared SQLite install index, plugin policy, and config writes are one lifecycle boundary even when operations target different plugin IDs. This change adds a shared cross-process SQLite lease around complete mutating flows, including CLI, Gateway management, chat policy changes, Claw package ownership, and post-core plugin convergence.
Install persistence now distinguishes missing configuration from authored invalid configuration. Missing required config records the install disabled while preserving plugin policy and normalizing allow/deny state; invalid authored config fails without rewriting it. Managed uninstall disables first while retaining config and the install record, removes the artifact, then re-reads and replans with fresh include guards before committing final cleanup. Failed deletion remains disabled and retryable.
User Impact
Evidence
tbx_01ky4ayymfqvkb82ywh0fa4b3b,tbx_01ky4gv6rqp9tch88m0ff4pm8z,tbx_01ky4rjy5vyvgc5h71p11410fr, andtbx_01ky4x00wbhs998er2darzc13r; initial run: https://github.com/openclaw/openclaw/actions/runs/29899649575clawhub:@aws/[email protected]installed disabled with an actionable warning, inspected cleanly, passed plugin doctor, uninstalled, and passed plugin doctor again on Linux Testbox.openai/gpt-5.6-lunaturn with exact replyOPENCLAW-LIVE-PLUGIN-GATEWAY-OK(runId=f6fac289-0e3b-4617-ba1b-04b09ae227f9). Blacksmith correctly refused secret forwarding and direct AWS was unavailable, so trusted-source live proof used the documented local isolated fallback.plugin-lifecycle-hot-reloadpassed on Blacksmith Testbox with the mock OpenAI lane.pnpm buildpassed.tbx_01ky5rf4vt0q2rabdpjky7gsr1: typecheck, core test types, full core lint shards, formatting, plugin boundaries, SDK API baseline, import cycles, state guards, and related checks. https://github.com/openclaw/openclaw/actions/runs/29955551057pnpm docs:check-mdxandpnpm docs:check-linkspassed.gpt-5.6-sol, xhigh) completed clean with no accepted/actionable findings; TruffleHog patch scan was clean.