From 1667fdcb1a621296eefc5ed90d846c1f77715c76 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sun, 11 Oct 2026 21:17:09 +0200 Subject: fix(node): tell the Node page how many cores there are The page reads its settings from list_groups, which lacked cpu_count, so the field showed "of 1" and stayed at 1. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-node/src/meshbay_node/ops/groups.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'packages/meshbay-node/src/meshbay_node/ops/groups.py') diff --git a/packages/meshbay-node/src/meshbay_node/ops/groups.py b/packages/meshbay-node/src/meshbay_node/ops/groups.py index ac14c3a..f6fdff2 100644 --- a/packages/meshbay-node/src/meshbay_node/ops/groups.py +++ b/packages/meshbay-node/src/meshbay_node/ops/groups.py @@ -130,15 +130,8 @@ async def list_groups(state: dict) -> dict: members = await roster.list_members() has_operator = any(m["role"] == "operator" and m["status"] == "active" for m in members) - from meshbay_node.config import node_settings_defaults - # No config (a test, an unconfigured node) falls back to NodeConfig()'s own - # values rather than to numbers repeated here, which is the copy this used - # to be: it was missing three settings and reported them as null. - defaults = node_settings_defaults(config.node if config else None) - if roster: - settings = await roster.node_settings(defaults) - else: - settings = defaults + from meshbay_node.ops.settings import node_settings_view + settings = await node_settings_view(roster, config) return {"groups": out, "operator_paired": has_operator, "settings": settings} -- cgit v1.2.3