Simplify WebUI startup loading fix

This commit is contained in:
chengyongru
2026-06-13 21:59:36 +08:00
committed by Xubin Ren
parent af0e3441d7
commit 04ed7554c0
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -700,7 +700,6 @@ class CliAppManager:
"_source": str(entry.get("source") or "local"), "_source": str(entry.get("source") or "local"),
"entry_point": str(entry.get("entry_point") or ""), "entry_point": str(entry.get("entry_point") or ""),
"package_manager": strategy, "package_manager": strategy,
"install_strategy": strategy,
} }
rows.append(self._app_payload(app, installed)) rows.append(self._app_payload(app, installed))
return { return {
+2 -2
View File
@@ -18,6 +18,7 @@ from websockets.http11 import Response
from nanobot.agent.tools.mcp import request_mcp_reload from nanobot.agent.tools.mcp import request_mcp_reload
from nanobot.bus.queue import MessageBus from nanobot.bus.queue import MessageBus
from nanobot.webui.cli_apps_api import cli_apps_action, cli_apps_payload 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.mcp_presets_api import mcp_presets_settings_action
from nanobot.webui.settings_api import ( from nanobot.webui.settings_api import (
WebUISettingsError, WebUISettingsError,
@@ -302,8 +303,7 @@ class WebUISettingsRouter:
async def _handle_settings_cli_apps(self, request: WsRequest) -> Response: async def _handle_settings_cli_apps(self, request: WsRequest) -> Response:
if not self._authorized(request): if not self._authorized(request):
return self._unauthorized() return self._unauthorized()
query = self._query(request) installed_only = (_query_first(self._query(request), "installed_only") or "").lower() in {
installed_only = (query.get("installed_only") or [""])[0].lower() in {
"1", "1",
"true", "true",
"yes", "yes",