diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-05 09:35:44 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-05 09:35:44 +0200 |
| commit | 9c354dcf9aeccbae7b29e312abfd3761a1dcc077 (patch) | |
| tree | 61d175c1b60458e71e791120d7536ad6420b4fcf | |
| parent | 146cee08ec9c4313bec5f69bb7ed7fbf73770aac (diff) | |
| download | meshbay-9c354dcf9aeccbae7b29e312abfd3761a1dcc077.tar.gz | |
fix(node): print "running" once in meshbay-node status
The daemon line repeated the state the daemon reports ("running — running").
The state is now appended only when it says something more than "running",
such as waiting_for_hub. The QUICKSTART example is updated to match.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | docs/QUICKSTART.md | 2 | ||||
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/cli/status.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/QUICKSTART.md b/docs/QUICKSTART.md index ce1eec1..ea75cab 100644 --- a/docs/QUICKSTART.md +++ b/docs/QUICKSTART.md @@ -359,7 +359,7 @@ A healthy node reads roughly like this: ``` hub https://meshbay.org (user yourname) node key 7mK2p...= -daemon running — ok +daemon running node_id 82.65.x.x:0 groups 1 files 4213 peers 1 config /home/you/.config/meshbay/node.toml diff --git a/packages/meshbay-node/src/meshbay_node/cli/status.py b/packages/meshbay-node/src/meshbay_node/cli/status.py index 162bd46..ebc6c77 100644 --- a/packages/meshbay-node/src/meshbay_node/cli/status.py +++ b/packages/meshbay-node/src/meshbay_node/cli/status.py @@ -34,7 +34,8 @@ def status(args) -> None: live = None if live: - print(f"daemon running — {live.get('status')}") + state = live.get("status") + print("daemon running" + (f" — {state}" if state and state != "running" else "")) print(f"node_id {live.get('endpoint_hint') or '—'}") print(f"groups {live.get('group_count', 0)}" f" files {live.get('total_files', 0)}" |