From 8d756a421071d0dfd507226c03430413b6de9491 Mon Sep 17 00:00:00 2001 From: austrian_guy <33156212+ether-btc@users.noreply.github.com> Date: Sat, 16 May 2026 00:56:33 +0200 Subject: [PATCH] fix(run_agent): guard memory provider init against empty/whitespace string --- run_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_agent.py b/run_agent.py index b10a68cf9d..41af78f16c 100644 --- a/run_agent.py +++ b/run_agent.py @@ -2061,7 +2061,7 @@ class AIAgent: try: _mem_provider_name = mem_config.get("provider", "") if mem_config else "" - if _mem_provider_name: + if _mem_provider_name and _mem_provider_name.strip(): from agent.memory_manager import MemoryManager as _MemoryManager from plugins.memory import load_memory_provider as _load_mem self._memory_manager = _MemoryManager()