From 022afc794b3e7453a42cfa16a80e5f02d1221bca Mon Sep 17 00:00:00 2001 From: damocles Date: Sun, 31 May 2026 03:25:26 +0200 Subject: [PATCH] harness: clear stale needs-login sentinel on healthy boot (#682) on unified binary --- hive-ag3nt/src/bin/hive.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hive-ag3nt/src/bin/hive.rs b/hive-ag3nt/src/bin/hive.rs index d4872c45..5923a846 100644 --- a/hive-ag3nt/src/bin/hive.rs +++ b/hive-ag3nt/src/bin/hive.rs @@ -143,6 +143,9 @@ async fn agent_serve_main(socket: &Path, poll_ms: u64) -> Result<()> { )); match initial { LoginState::Online => { + // Clear any stale `hyperhive-needs-login` sentinel left + // over from a prior boot (closes #682, see #688). + bus.emit_status("online"); agent_serve_loop( socket, Duration::from_millis(poll_ms), @@ -466,6 +469,9 @@ async fn manager_serve_main(socket: &Path, poll_ms: u64) -> Result<()> { tokio::spawn(hive_ag3nt::forge_notify::run(socket.to_path_buf(), true)); match initial { LoginState::Online => { + // Clear any stale `hyperhive-needs-login` sentinel left + // over from a prior boot (closes #682, see #688). + bus.emit_status("online"); manager_serve_loop( socket, Duration::from_millis(poll_ms),