Skip to content

Your lightweight open-source personal agent.

Simplify WebUI startup loading fix

chengyongru04ed7554c052
diff --git a/nanobot/apps/cli/service.py b/nanobot/apps/cli/service.py
index 63a98043f..ba9bca43e 100644
--- a/nanobot/apps/cli/service.py
+++ b/nanobot/apps/cli/service.py
@@ -700,7 +700,6 @@ class CliAppManager:
"_source": str(entry.get("source") or "local"),
"entry_point": str(entry.get("entry_point") or ""),
"package_manager": strategy,
- "install_strategy": strategy,
}
rows.append(self._app_payload(app, installed))
return {
diff --git a/nanobot/webui/settings_routes.py b/nanobot/webui/settings_routes.py
index 0969db8ee..128871ce7 100644
--- a/nanobot/webui/settings_routes.py
+++ b/nanobot/webui/settings_routes.py
@@ -18,6 +18,7 @@ from websockets.http11 import Response
from nanobot.agent.tools.mcp import request_mcp_reload
from nanobot.bus.queue import MessageBus
from nanobot.webui.cli_apps_api import cli_apps_action, cli_apps_payload
+from nanobot.webui.http_utils import query_first as _query_first
from nanobot.webui.mcp_presets_api import mcp_presets_settings_action
from nanobot.webui.settings_api import (
WebUISettingsError,
@@ -302,8 +303,7 @@ class WebUISettingsRouter:
async def _handle_settings_cli_apps(self, request: WsRequest) -> Response:
if not self._authorized(request):
return self._unauthorized()
- query = self._query(request)
- installed_only = (query.get("installed_only") or [""])[0].lower() in {
+ installed_only = (_query_first(self._query(request), "installed_only") or "").lower() in {
"1",
"true",
"yes",