From a6e0287c6fd9bc8b6db94c3b62c02540d011efa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20Pe=CC=81rez?= Date: Wed, 8 Apr 2026 11:33:35 +0100 Subject: [PATCH] chore: fix /Users/Akasha/Development/ontoref withoud .ontoref --- crates/ontoref-daemon/src/ui/handlers.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/ontoref-daemon/src/ui/handlers.rs b/crates/ontoref-daemon/src/ui/handlers.rs index 77b942c..cb197cc 100644 --- a/crates/ontoref-daemon/src/ui/handlers.rs +++ b/crates/ontoref-daemon/src/ui/handlers.rs @@ -782,6 +782,12 @@ pub async fn project_picker(State(state): State) -> Result = Vec::new(); for proj in registry.all() { + // Skip projects that lack an .ontoref/ directory — the daemon may be + // started from an arbitrary $PWD that has not adopted the protocol. + if !proj.root.join(".ontoref").is_dir() { + continue; + } + // Sessions let actor_list = proj.actors.list(); let sessions: Vec = actor_list