From 90cb005019a5645903eef50af5ef7964195c82a3 Mon Sep 17 00:00:00 2001 From: Huskies Agent Date: Sat, 18 Jul 2026 12:37:54 +0000 Subject: [PATCH] huskies: merge 1216 story Shorten long-turn notification to "Working..." --- .../transport/matrix/bot/messages/handle_message.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/server/src/chat/transport/matrix/bot/messages/handle_message.rs b/server/src/chat/transport/matrix/bot/messages/handle_message.rs index e82dfef6..acd5c586 100644 --- a/server/src/chat/transport/matrix/bot/messages/handle_message.rs +++ b/server/src/chat/transport/matrix/bot/messages/handle_message.rs @@ -19,7 +19,7 @@ use super::format_user_prompt; /// Text posted to the room by [`spawn_digging_in_watcher`] when a turn runs /// long without emitting any user-facing text. -const DIGGING_IN_MESSAGE: &str = "Still digging in — this turn is taking a bit longer than usual."; +const DIGGING_IN_MESSAGE: &str = "Working..."; /// Spawns a background watcher that posts a single "digging in" notice to /// `room_id` if `threshold` elapses before `sent_any_text` becomes `true`. @@ -392,7 +392,7 @@ mod tests { } /// AC 1: a turn that runs longer than the threshold without sending any - /// text gets exactly one "digging in" notice. + /// text gets exactly one "Working..." notice. #[tokio::test] async fn digging_in_fires_after_threshold_when_no_text_sent() { let transport = Arc::new(CapturingTransport::new()); @@ -405,14 +405,7 @@ mod tests { ); handle.await.unwrap(); assert_eq!(transport.sent_count(), 1); - assert!( - transport - .last_message() - .unwrap() - .to_lowercase() - .contains("digging in"), - "notice should mention 'digging in'" - ); + assert_eq!(transport.last_message().unwrap(), "Working..."); } /// AC 2: if text is sent before the threshold elapses, the watcher must