MemOS icon indicating copy to clipboard operation
MemOS copied to clipboard

Bug: ViewerService registered via registerService() but never started by OpenClaw Gateway

Open ghost opened this issue 7 months ago • 2 comments

Bug: ViewerService Never Started

The ViewerServer registered via api.registerService() is never started by the OpenClaw Gateway. Plugin initializes correctly but service.start() is never called.

Environment:

  • OpenClaw: 2026.4.2
  • memos-local-openclaw-plugin: 1.0.6-beta.11
  • Node.js: v22.22.2

Steps to Reproduce:

  1. Install memos-local-openclaw-plugin
  2. Configure with valid API keys
  3. Start OpenClaw Gateway
  4. Observe — plugin initialized logs, but started never appears

Gateway Log Evidence:

2026-04-04T00:32:50 memos-local: initialized (db: /root/.openclaw/memos-local/memos.db)
2026-04-04T00:32:50 memos-local: allowPromptInjection=true, auto-recall enabled
2026-04-04T00:32:50 watchdog detected non-announced service

The watchdog detects the service is not announced, but does not start it.

Question: Is registerService supposed to auto-start the service? What is the correct integration pattern for a plugin that needs to start a long-running HTTP server?

ghost avatar Apr 03 '26 17:04 ghost

Hi, this issue should have been resolved in the latest version of our plugin. Could you please update to the newest version and check if the problem still persists? Thank you!

Hun-ger avatar Apr 17 '26 08:04 Hun-ger

Hey @Aeglx! Thanks for the contribution — already solved the issue, thanks for helping us to catch the bug! 🐞

Btw if you enjoyed contributing and want to stay connected with the project, we run a Discord server for contributors, a chill space to discuss features, ask questions, or pick up new issues  👉🏻 MemOS Discord Server (Contributor Exclusive)

Thanks again for shipping this, and happy MemOSing 🧠✨

angarchie avatar May 14 '26 08:05 angarchie