From f8dd2e0724a18b93cf3314cecef526df1b4a0f9b Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 18 Nov 2025 12:23:05 +0800 Subject: [PATCH] Fix namespace parsing when workspace contains colons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Use rsplit instead of split • Handle colons in workspace names --- lightrag/kg/shared_storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightrag/kg/shared_storage.py b/lightrag/kg/shared_storage.py index cd682718..834cdc8f 100644 --- a/lightrag/kg/shared_storage.py +++ b/lightrag/kg/shared_storage.py @@ -1375,7 +1375,8 @@ async def get_all_update_flags_status(workspace: str | None = None) -> Dict[str, if ":" in namespace: # Namespace has workspace prefix like "space1:pipeline_status" # Only include if workspace matches the prefix - namespace_split = namespace.split(":", 1) + # Use rsplit to split from the right since workspace can contain colons + namespace_split = namespace.rsplit(":", 1) if not workspace or namespace_split[0] != workspace: continue else: