Repository navigation
fix(deploy): mark deploy-bundled externalized plugins as bundledDist - #9
Merged
Merged
Conversation
Upstream treats officially externalized plugins (codex, signal, ...) as npm-owned, so update convergence ignores the copies this fork's deploy bundles into dist/extensions. With no npm release of 2026.9.7, codex's settings migration waited forever for package convergence, and `plugins install codex` refused until that migration finished: a deadlock that kept codex on 2026.9.6. Stamp `openclaw.build.bundledDist: true` on each bundled externalized plugin, the core's declared marker that the dist owns it (isExternallyDistributedPlugin). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
An explicit bundledDist: false also selects the Gateway startup policy; overwriting it would start opencode, teams-meetings and zoom-meetings by default. jq's //= would replace false too, so test for null explicitly. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Owner
Author
|
Independent review (two passes): ship at a7f1474. First pass flagged that overwriting explicit |
tomorrowflow
pushed a commit
that referenced
this pull request
Oct 5, 2026
…ersized rows (openclaw#164303) The validating Doctor inside openclaw update died natively (SIGABRT, Reached heap limit, v8::String::NewFromOneByte <- node:sqlite UserDefinedFunction::xFunc <- DatabaseSync::Exec) while migrating a multi-GiB memory_embedding_cache: node:sqlite materializes each TEXT embedding as a JS string before the UDF runs, so one oversized row or a large table killed the child with no exit code and the update failed with no reason. The memory-storage migration now guards embedding size inside SQL (rows over 1 MiB never reach JS), reads 128-row windows, parses in JS, records skipped rows as recoverable Doctor warnings (count + first rowids), and stays idempotent on rerun. No schema version or table change; no heap flag. Reported on Discord (#9.5->9.7, raman hero). (cherry picked from commit fabc10f)
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.
Problem
codex is stuck on 2026.9.6 after the 2026.9.7 update:
openclaw update status:Plugin "codex" data/settings upgrade is unfinished: The configured plugin package is missing or has not converged.Plugin "codex" refresh: already-current (2026.9.6)because npmlatestis 2026.9.6; no@openclaw/[email protected]exists.openclaw plugins install codex(bundled copy):Plugin settings are not ready for activation: codex. Run openclaw doctor --fix ...Doctor defers codex's state migration until its package converges, and the bundled install refuses until the migration has run.
Root cause
resolveConfiguredPluginInstallContext(src/commands/doctor/shared/missing-configured-plugin-install.candidates.ts) buildsbundledPluginsByIdwithout plugins thatisExternallyDistributedPluginreports as npm-distributed. Upstream never ships those indist, but this fork'sdeploy-globally.mjsbundles them. So the 2026.9.7 codex copy indist/extensions/codexnever counts asavailableWithoutPackageConvergence(plugin-migration-availability.ts).Fix
deploy-globally.mjsstampsopenclaw.build.bundledDist: trueon each externalized plugin it bundles, only when the marker is unset (codex and ~80 others).isExternallyDistributedPlugintreats that as "this dist owns the plugin"; upstream'sscripts/lib/package-bundled-plugins.mts:141-147stamps the same marker for composed plugins. The 73 plugins that declarebundledDist: false(signal, whatsapp, slack, ...) are left untouched:falsealso selects the Gateway startup policy (gateway-startup-plugin-plan.ts:217-235), and flipping it would start opencode, teams-meetings and zoom-meetings by default. jq's//=also replacesfalse, so the filter tests fornullexplicitly.Side effects for the newly stamped plugins (from review):
openclaw update/doctor --fix, a tracked managed npm copy of such a plugin is removed and its install record dropped in favor of the bundled copy (post-core-plugin-convergence.ts:225-230,doctor-plugin-registry.ts:231-306), without a version check. On this host only codex still has a tracked npm install (all other enabled plugins were moved to bundled copies).official-external-plugin-repair-hints.ts:42,55); the deploy installs their dependencies and fails loudly if that fails.Registered in
docs/fork-features.txt.Evidence
ca5f8f1).update statuswithout the codex warning,plugins install codexsucceeding, and codex loading 2026.9.7.node --check,oxfmt --check,check-fork-features(82 present),git diff --check.🤖 Generated with Claude Code