#14466: fix(status): report memory status for all memory plugins (#14261)
commands
stale
size: XS
Cluster:
Memory Management Enhancements
## 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
#12596: fix(status): show third-party memory plugins as active instead of u...
by nhadaututtheky · 2026-02-09
77.7%
#21631: feat(doctor): detect memory plugins in memory search health check
by tsukhani · 2026-02-20
69.9%
#4881: docs(plugin): clarify memory-lancedb is bundled (no npm install nee...
by AverageSuami · 2026-01-30
65.1%
#12665: fix(tools): recognise tool groups that expand to plugin tools in al...
by mcaxtr · 2026-02-09
62.4%
#22692: fix(memory-lancedb): [P1] add missing runtime deps — plugin broken ...
by mahsumaktas · 2026-02-21
62.2%
#16657: feat(memory-lancedb): add memory CLI command alias
by ciberponk · 2026-02-15
62.1%
#22341: fix(status): detect node-only mode and show remote gateway info
by therk · 2026-02-21
61.7%
#19717: fix: load plugin registry before channel commands run
by MisterGuy420 · 2026-02-18
61.0%
#12760: fix(memory-flush): fire on every compaction cycle instead of skippi...
by lailoo · 2026-02-09
60.5%
#4450: fix bug #4366: Error: Config validation failed: plugins.slots.memor...
by tryagain3 · 2026-01-30
60.4%