From e5d1984dc17e373113d1f82f8963884f8a55aaf7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 19 Nov 2026 21:57:34 +0100 Subject: [PATCH] Persona door: startup binds it when asked; the desk test names no door Co-Authored-By: Claude Opus 5.5 --- crates/huginn-daemon/src/desk_door_tests.rs | 1 + crates/huginn-daemon/src/serve.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/huginn-daemon/src/desk_door_tests.rs b/crates/huginn-daemon/src/desk_door_tests.rs index 16f6522..d32888a 100644 --- a/crates/huginn-daemon/src/desk_door_tests.rs +++ b/crates/huginn-daemon/src/desk_door_tests.rs @@ -686,6 +686,7 @@ mod door_smoke { state_root: root.path().to_path_buf(), instance: slug(INSTANCE), bind: "127.0.0.1:0".parse().unwrap(), + persona_bind: None, qdrant_url: "http://127.0.0.1:1".into(), ollama_urls: vec!["http://127.0.0.1:1".into()], reserve_ollama_urls: Vec::new(), diff --git a/crates/huginn-daemon/src/serve.rs b/crates/huginn-daemon/src/serve.rs index a28cdb9..a0296a5 100644 --- a/crates/huginn-daemon/src/serve.rs +++ b/crates/huginn-daemon/src/serve.rs @@ -1650,7 +1650,7 @@ mod tests { state_root: root.path().to_path_buf(), instance: slug(INSTANCE), bind: port, - persona_bind: None, + persona_bind: Some("127.0.0.1:0".parse().unwrap()), qdrant_url: "http://127.0.0.1:1".into(), ollama_urls: vec!["http://127.0.0.1:1".into()], reserve_ollama_urls: Vec::new(), @@ -1674,6 +1674,8 @@ mod tests { drop(occupied); let started = started(&options).expect("both gates open"); assert_eq!(started.hub.local_addr().unwrap(), port); + let door = started.persona.as_ref().expect("the persona door was asked for and bound"); + assert_ne!(door.local_addr().unwrap(), port, "the persona door is its own listener"); } #[test]