TencentDB-Agent-Memory icon indicating copy to clipboard operation
TencentDB-Agent-Memory copied to clipboard

memory-tdai seed CLI registration missing after OpenClaw upgrade blocks historical seed workflows

Open leoge007 opened this issue 6 months ago • 3 comments

Hi, while building a shadow-only historical backfill workflow for TencentDB Agent Memory, I found that the seed workflow depends on the memory-tdai CLI being registered in OpenClaw.

Expected:

openclaw memory-tdai --help
openclaw memory-tdai seed --help

should be available after installing/enabling the TencentDB Agent Memory plugin.

Observed:

after upgrading OpenClaw, the official seed CLI was not registered, so historical seed / shadow backfill workflows could not run through the documented command path.

This blocks tools that rely on the official seed entrypoint instead of importing private plugin internals.

Related discussion/tooling:

  • https://github.com/Tencent/TencentDB-Agent-Memory/discussions/56
  • https://github.com/leoge007/tdb-history-shadow-tools

Question: Should the memory-tdai CLI registration be handled by this plugin package/manifest, or should this be fixed in OpenClaw's plugin command registration layer?

Happy to submit a PR once the expected registration boundary is confirmed.

leoge007 avatar May 19 '26 11:05 leoge007

Thanks for the report! Could you provide the following info so we can investigate?

  • OpenClaw versions before and after the upgrade (which version to which version, and how you upgraded)
  • TencentDB-Agent-Memory plugin version
  • The exact error output when running openclaw memory-tdai --help after the upgrade

Maxwell-Code07 avatar May 19 '26 15:05 Maxwell-Code07

Thanks for the feedback! We have identified this issue before and completed the internal fix last week in internal beta version. It will be included in the next release after passing QA tests.

What's fixed

We have addressed the undefined error by adding special handling for the OpenClaw 2026.5.x scanning CLI flow:

  • Logic change: When api.registrationMode === "cli-metadata", the system now returns the registered CLI directly, skipping subsequent logic that caused the crash.
  • Fallback: A fallback implementation for resolveStateDir has been added as a safety guard.

Seed command compatibility

To fix the issue where the seed command was not working, we updated openclaw.plugin.json:

  • Added "commandAliases": ["memory-tdai"] to support legacy scripts.

In next release, you can now run the seed command using either of the following:

openclaw memory-tdai seed

or

openclaw memory-tencentdb seed

Thanks again for the detailed report

Xuruida avatar May 25 '26 07:05 Xuruida

Closing this — fixed internally and shipping in the next release.
Thanks @leoge007 for the report! 🙏

Xuruida avatar May 25 '26 07:05 Xuruida