← Back to PRs

#14466: fix(status): report memory status for all memory plugins (#14261)

by lailoo open 2026-02-12 05:39 View on GitHub →
commands stale size: XS
## Summary Fixes #14261 ## Problem `scanMemoryStatus()` in `src/commands/status.scan.ts` only checks for the hardcoded `memory-core` plugin slot when reporting memory status. Users with alternative memory plugins (e.g. `mem0`, `letta`) see no memory status in `openclaw status` output even though their plugin is active. ## Fix Iterate over all registered memory plugin slots (`getMemoryPluginSlots()`) instead of only checking `memory-core`. Report the first active memory plugin found. ## Reproduction & Verification ### Before fix (main branch) — Bug confirmed: ``` pnpm vitest run src/commands/status.test.ts --reporter=verbose ✓ 5 tests pass — no test for non-memory-core plugins ``` `scanMemoryStatus()` hardcodes `getPluginById("memory-core")`, ignoring other memory plugins. ### After fix — All verified: ``` ✓ prints JSON when requested ✓ prints formatted lines otherwise ✓ shows gateway auth when reachable ✓ surfaces channel runtime errors from the gateway ✓ includes sessions across agents in JSON output ✓ reports memory status for non-memory-core plugins (#14261) 6 tests pass (pnpm vitest run src/commands/status.test.ts) ``` ## Testing - ✅ 6 tests pass (`pnpm vitest run src/commands/status.test.ts`) - ✅ Lint passes

Most Similar PRs