Skip to content

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

fix(bus): skip thread suffix in conversation title when provider ignores thread

Steven Enamakel9656da66c7bf
diff --git a/crates/openhuman-core/src/memory/conversations/bus.rs b/crates/openhuman-core/src/memory/conversations/bus.rs
index ef565083df..2529ed17f4 100644
--- a/crates/openhuman-core/src/memory/conversations/bus.rs
+++ b/crates/openhuman-core/src/memory/conversations/bus.rs
@@ -354,7 +354,11 @@ fn channel_thread_title(
thread_ts: Option<&str>,
) -> String {
match thread_ts.and_then(non_empty_trimmed) {
- Some(thread_ts) if channel != "telegram" => {
+ // Providers whose thread_ts is only a reply target (Telegram topics)
+ // share one conversation, so the title leaves it out too.
+ Some(thread_ts)
+ if !tinychannels_bus::capabilities_for(channel).history_key_ignores_thread =>
+ {
format!("{channel} · {sender} · {reply_target} · thread {thread_ts}")
}
_ => format!("{channel} · {sender} · {reply_target}"),