Skip to content

memory-lancedb npm v2026.5.3: imports nonexistent subpath openclaw/plugin-sdk/plugin-config-runtime — plugin fails to load #77673

Closed

Description

@ndagle73

Bug

@openclaw/memory-lancedb@2026.5.3 (npm) fails to load on OpenClaw 2026.5.3-1 with:

[plugins] memory-lancedb failed to load from /sandbox/.openclaw/npm/node_modules/@openclaw/memory-lancedb/dist/index.js: Error: Cannot find module '/usr/local/lib/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/plugin-config-runtime'
Require stack:
- /sandbox/.openclaw/npm/node_modules/@openclaw/memory-lancedb/dist/index.js

Root cause

The npm-published dist/index.js imports:

import { resolveLivePluginConfigObject } from "openclaw/plugin-sdk/plugin-config-runtime";

But the corresponding subpath plugin-config-runtime does not exist in OpenClaw 2026.5.3-1's dist/plugin-sdk/ tree. The function resolveLivePluginConfigObject IS exported from other subpath files (memory-core.js, compat.js, memory-core-host-runtime-core.js, etc.) but not from a file named plugin-config-runtime.

Source code in the OpenClaw repo at packages/plugin-sdk/src/ has config-runtime.ts (no plugin- prefix) — so it appears the npm package's bundle was built with an import path that doesn't match the published exports map / subpath structure.

Reproduction

# clean pod, openclaw 2026.5.3-1
openclaw plugins install @openclaw/memory-lancedb
openclaw config set plugins.slots.memory memory-lancedb
openclaw config set 'plugins.allow' '["memory-lancedb"]' --json
openclaw config set 'plugins.load.paths' '["/sandbox/.openclaw/npm/node_modules/@openclaw/memory-lancedb"]' --json
# restart gateway, observe load failure in gateway log

Workaround

Use the bundled plugin (/usr/local/lib/node_modules/openclaw/dist/extensions/memory-lancedb/, version 2026.4.20) instead by removing plugins.allow and plugins.load.paths from openclaw.json. The bundled plugin uses a content-hashed relative import (../../config-runtime-Dutm3Ah0.js) that resolves correctly.

Suggested fix

Either:

  • Republish @openclaw/memory-lancedb with the import path that matches the published subpath layout (e.g. openclaw/plugin-sdk/memory-core or whichever subpath canonically exports resolveLivePluginConfigObject)
  • Or add a plugin-config-runtime re-export subpath to OpenClaw's dist/plugin-sdk/ so the existing npm bundle resolves

Environment

  • OpenClaw 2026.5.3-1
  • @openclaw/memory-lancedb 2026.5.3 (npm)
  • macOS 26.4 + Docker Desktop / openshell-cluster-nemoclaw
  • pod runs as gateway uid 999 (gosu drop fallback to root in OpenShell no-new-privileges container; structural)

Activity

  1. clawsweeper commented on May 5, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

    Current main has the missing plugin-config-runtime SDK subpath wired into the source export map, build entry list, and post-build export check, so the npm memory-lancedb import path reported here is resolved on main. This is not proven shipped in v2026.5.3, so the bundled-plugin workaround remains the right release-side workaround until a release containing current main is available.

    I found the merged PR that appears to have closed this: #77606: Add instructions for how to setup slack for QA tests.

    So I’m closing this as already implemented rather than keeping a duplicate issue open.

    Review details

    Best possible solution:

    Keep the current main SDK subpath/export wiring and ship it in the next release; users pinned to v2026.5.3 should keep using the bundled memory plugin workaround or upgrade once the fixed release is available.

    Do we have a high-confidence way to reproduce the issue?

    Yes. The reported release failure is source-reproducible from the exact memory-lancedb import and the missing published subpath condition described in the stack trace; current main removes that condition by exporting and building the subpath.

    Is this the best way to solve the issue?

    Yes. Preserving openclaw/plugin-sdk/plugin-config-runtime as a real SDK subpath is the narrowest backward-compatible fix because it satisfies the existing external plugin import without changing memory-lancedb runtime behavior.

    Security review:

    Security review: This is an issue triage with no proposed patch to review for security or supply-chain regressions.

    What I checked:

    Likely related people:

    • Sarah Fortune: Current blame for the plugin-config-runtime module and memory-lancedb package metadata points to the first available main-side proof commit after the latest release. (role: recent maintainer; confidence: medium; commits: d6e991db4964; files: src/plugin-sdk/plugin-config-runtime.ts, extensions/memory-lancedb/package.json)
    • steipete: Recent history ties Peter to the v2026.5.3 release tag and earlier plugin SDK alias packaging work, which is the affected published-dist surface. (role: release and SDK packaging maintainer; confidence: medium; commits: 06d46f7cf638, 4862d349257a, 47411f7c524c; files: package.json, src/plugin-sdk/root-alias.cjs, scripts/check-plugin-sdk-exports.mjs)
    • Gustavo Madeira Santana: History shows Gustavo migrated memory-lancedb to scoped plugin SDK imports, the same plugin import boundary involved in this report. (role: adjacent memory-lancedb import-surface contributor; confidence: low; commits: 6b19b7f37af3; files: extensions/memory-lancedb/index.ts)

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 3290cba1a603; fix evidence: merged PR #77606, commit d6e991db4964, main fix timestamp 2026-05-04T17:38:16-07:00.

  2. locked as resolved and limited conversation to collaborators on May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions