Skip to content

Your lightweight open-source personal agent.

fix: remove unsupported -y flag from uv pip uninstall fallback

axelray-devc2e9064b3539
diff --git a/nanobot/apps/cli/service.py b/nanobot/apps/cli/service.py
index b53957f16..906e5f14a 100644
--- a/nanobot/apps/cli/service.py
+++ b/nanobot/apps/cli/service.py
@@ -734,7 +734,7 @@ class CliAppManager:
if self._pip_available():
prefix = [sys.executable, "-m", "pip", "uninstall", "-y"]
elif shutil.which("uv"):
- prefix = ["uv", "pip", "uninstall", "--python", sys.executable, "-y"]
+ prefix = ["uv", "pip", "uninstall", "--python", sys.executable]
else:
raise CliAppError("pip is not available and uv is not installed")
distribution = str((installed_entry or {}).get("pip_distribution") or "").strip()
diff --git a/tests/cli_apps/test_service.py b/tests/cli_apps/test_service.py
index c98f2449b..b6b58d919 100644
--- a/tests/cli_apps/test_service.py
+++ b/tests/cli_apps/test_service.py
@@ -843,6 +843,5 @@ def test_uninstall_uses_uv_pip_when_pip_unavailable(
"uninstall",
"--python",
sys.executable,
- "-y",
"suno-cli",
]