From b411a81c1a8a10eeeef815f5e0b3a45847863760 Mon Sep 17 00:00:00 2001 From: atlas Date: Fri, 5 Jun 2026 09:55:24 +0200 Subject: [PATCH] fix: point hivectl agents at the correct host socket path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hivectl's DEFAULT_HOST_SOCKET was /run/hive/host.sock, but hive-c0re binds /run/hyperhive/host.sock (main.rs default + startup log). The doc comment even claimed it matched hive-c0re's default — it didn't. So 'hivectl agents restart' / 'restart-all' failed with 'connect to /run/hive/host.sock: No such file or directory' unless the operator passed --socket explicitly. Point the default at /run/hyperhive/host.sock. --- hive-c0re/src/bin/hivectl.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hive-c0re/src/bin/hivectl.rs b/hive-c0re/src/bin/hivectl.rs index 0f1419b5..490f4394 100644 --- a/hive-c0re/src/bin/hivectl.rs +++ b/hive-c0re/src/bin/hivectl.rs @@ -246,8 +246,10 @@ enum GatewayCmd { }, } -/// Default host admin socket path (same as `hive-c0re`'s default). -const DEFAULT_HOST_SOCKET: &str = "/run/hive/host.sock"; +/// Default host admin socket path. Must match `hive-c0re`'s default in +/// `main.rs` (`/run/hyperhive/host.sock`) — the daemon binds there and +/// `hivectl agents` connects to it. +const DEFAULT_HOST_SOCKET: &str = "/run/hyperhive/host.sock"; #[derive(Subcommand)] enum AgentsCmd {