Skip to content

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

test(channels): correct thread and topic fields in route tests

Steven Enamakeldf4f6a63bf2b
diff --git a/crates/openhuman-core/src/channels/routes_tests.rs b/crates/openhuman-core/src/channels/routes_tests.rs
index b1536bad08..0a6eda5369 100644
--- a/crates/openhuman-core/src/channels/routes_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_tests.rs
@@ -319,7 +319,7 @@ async fn cached_models_and_help_responses_render_expected_text() {
fn model_command_messages_use_thread_aware_history_keys() {
let msg = ChannelMessage {
reply_to_id: None,
- topic_id: Some("42".into()),
+ topic_id: None,
id: "1".into(),
sender: "alice".into(),
reply_target: "room".into(),
@@ -548,7 +548,7 @@ async fn handle_runtime_command_telegram_status_replies_without_agent() {
content: "/status".into(),
channel: "telegram".into(),
timestamp: 0,
- thread_ts: None,
+ thread_ts: Some("42".into()),
sender_name: None,
};
@@ -632,14 +632,14 @@ async fn handle_runtime_command_telegram_sessions_reports_empty_store() {
let channel = Arc::new(ChannelHandle::Test(Arc::clone(&channel_state)));
let msg = ChannelMessage {
reply_to_id: None,
- topic_id: None,
+ topic_id: Some("42".into()),
id: "1".into(),
sender: "alice".into(),
reply_target: "chat-remote".into(),
content: "/sessions".into(),
channel: "telegram".into(),
timestamp: 0,
- thread_ts: Some("42".into()),
+ thread_ts: None,
sender_name: None,
};
diff --git a/crates/openhuman-core/src/channels/routes_tests_telegram.rs b/crates/openhuman-core/src/channels/routes_tests_telegram.rs
index f601d244a4..e99211bf6f 100644
--- a/crates/openhuman-core/src/channels/routes_tests_telegram.rs
+++ b/crates/openhuman-core/src/channels/routes_tests_telegram.rs
@@ -113,7 +113,6 @@ async fn handle_runtime_command_telegram_new_uses_module_storage() {
.map(|(_, channel)| Arc::clone(channel))
.expect("linked runtime should expose its Telegram module handle");
let msg = ChannelMessage {
- reply_to_id: None,
topic_id: Some("42".into()),
id: "200".into(),
reply_to_id: Some("100".into()),