aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/src/meshbay_node/ops/groups.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-11 21:17:09 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-11 21:17:09 +0200
commit1667fdcb1a621296eefc5ed90d846c1f77715c76 (patch)
tree3626f1dd5a6281473dea4f59382d107251ca4d40 /packages/meshbay-node/src/meshbay_node/ops/groups.py
parent2ef0c215ea4af421a4b22ab543a5999320998f68 (diff)
downloadmeshbay-1667fdcb1a621296eefc5ed90d846c1f77715c76.tar.gz
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 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/ops/groups.py')
-rw-r--r--packages/meshbay-node/src/meshbay_node/ops/groups.py11
1 files changed, 2 insertions, 9 deletions
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}