Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

cli: warn when auto-naming creates numbered copy (#2815)

Ben Sharir2943e0234b57
diff --git a/openviking/utils/resource_processor.py b/openviking/utils/resource_processor.py
index ab759659e..2eb16bf71 100644
--- a/openviking/utils/resource_processor.py
+++ b/openviking/utils/resource_processor.py
@@ -297,6 +297,11 @@ class ResourceProcessor:
ctx=ctx,
)
result["root_uri"] = root_uri
+ if root_uri != candidate_uri:
+ result.setdefault("warnings", []).append(
+ f"'{candidate_uri}' already exists. Creating '{root_uri}'. "
+ f"Tip: Use --to <path> to specify exact target."
+ )
else:
target_preexisting = await viking_fs.exists(root_uri, ctx=ctx)
if target_preexisting: