Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(threads): handle empty title generation gracefully

Steven Enamakel90178b3a764a
diff --git a/crates/openhuman-core/src/threads/ops/title_generation.rs b/crates/openhuman-core/src/threads/ops/title_generation.rs
index cb158753f7..53d1951ef6 100644
--- a/crates/openhuman-core/src/threads/ops/title_generation.rs
+++ b/crates/openhuman-core/src/threads/ops/title_generation.rs
@@ -11,8 +11,10 @@ use crate::memory::{
};
use tinyagents_harness::title::{
build_title_request, is_auto_generated_thread_title, sanitize_generated_title,
- title_log_fingerprint, THREAD_TITLE_LOG_PREFIX,
+ title_log_fingerprint,
};
+
+const THREAD_TITLE_LOG_PREFIX: &str = "[threads:title]";
use crate::threads::ThreadsError;
/// Generates a durable thread title from the first user message and assistant reply.