Simplify WebUI startup loading fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user