Skip to content

fix(install): register plugin in slots, entries and installs of openclaw.json#1402

Merged
hijzy merged 1 commit intoMemTensor:mainfrom
hijzy:fix/install-register-plugin-config
Apr 2, 2026
Merged

fix(install): register plugin in slots, entries and installs of openclaw.json#1402
hijzy merged 1 commit intoMemTensor:mainfrom
hijzy:fix/install-register-plugin-config

Conversation

@hijzy
Copy link
Copy Markdown
Collaborator

@hijzy hijzy commented Apr 2, 2026

Summary

The install scripts (install.sh / install.ps1) previously only wrote plugins.allow and plugins.enabled to openclaw.json, but missed three critical registrations. This caused the OpenClaw gateway to not auto-load the memos-local plugin on restart.

Changes

  • plugins.slots.memory: Register the plugin in the memory slot so OpenClaw knows which plugin handles memory operations
  • plugins.entries[pluginId].enabled = true: Enable the plugin entry (preserves existing user config like embedding/summarizer settings)
  • plugins.installs[pluginId]: Write full npm install metadata (source, spec, installPath, version, resolvedName, resolvedVersion, resolvedSpec, installedAt) so the gateway can track and auto-load the plugin
  • Clean up stale contextEngine slot: Remove deprecated slot from previous versions

Files changed

  • apps/memos-local-openclaw/install.sh
  • apps/memos-local-openclaw/install.ps1

Test plan

  • Fresh install via bash install.sh --version <version> — verify openclaw.json contains slots.memory, entries, and installs for the plugin
  • Restart OpenClaw gateway — verify plugin loads automatically without manual config
  • Re-install over existing config — verify user's existing entries[pluginId].config (embedding, summarizer, etc.) is preserved

Made with Cursor

…law.json

The install scripts previously only wrote plugins.allow and plugins.enabled,
missing the slots, entries and installs registration. This caused OpenClaw
gateway to not auto-load the plugin on restart.

Now the scripts write:
- plugins.slots.memory = pluginId
- plugins.entries[pluginId].enabled = true (preserving existing config)
- plugins.installs[pluginId] with full npm resolution metadata
- Clean up stale contextEngine slot from previous versions

Made-with: Cursor
@hijzy hijzy merged commit 825ec0d into MemTensor:main Apr 2, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant