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),