Hello!
My openclaw agent hallucinated some unexistend commands for config, and now I cant erease it. Please @near ravine Help!
Error:
Invalid config at /home/user/.openclaw/openclaw.json:\n- plugins.deny: plugin not found: memory-lancedb
🦞 OpenClaw 2026.5.7 (eeef486) — WhatsApp automation without the "please accept our new privacy policy".
Config invalid
File: ~/.openclaw/openclaw.json
Problem:
- plugins.deny: plugin not found: memory-lancedb
Run: openclaw doctor --fix
The practical result: openclaw config reports "Config invalid" and the gateway rejects the configuration.
However, the real problem is worse than just an invalid config file. The gateway exhibits a persistent config restoration behavior:
- Manually fixing the broken openclaw.json (removing plugins.deny and memory-lancedb from plugins.entries) appears to work on disk.
- But when the gateway starts, it overwrites the corrected config with the previously cached broken version — restoring memory-lancedb entries and denying the fix.
- Attempts to delete the recovery/fallback files were made:
• Removed last-good configuration snapshots
• Removed .bak backup configs
• Attempted workspace-level cleanup - Despite these deletions, the broken config is always restored upon gateway startup — the invalid state survives every attempt to overwrite it.
The gateway is essentially locked in a loop: it stores a "last-known" config (the broken one), and on every restart it restores that cached version, discarding any manual corrections. The fix needs to happen at the source of the cached config — it cannot be resolved by simply editing the JSON file. I cant even execute commands like "openclaw config unset" because of that stupid error
"plugins": {
...
"deny": [
"memory-core",
"memory-lancedb"
]
}