Skip to content

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

test(native-channel): assert voice preview is logged without transcript

Steven Enamakel43e23a5099b0
diff --git a/tests/native_channel_session_restart_e2e.rs b/tests/native_channel_session_restart_e2e.rs
index 98b6ac1ed0..c953a5251b 100644
--- a/tests/native_channel_session_restart_e2e.rs
+++ b/tests/native_channel_session_restart_e2e.rs
@@ -875,6 +875,10 @@ async fn telegram_voice_note_runs_scoped_stt_agent_and_mirror_tts_through_module
);
let voice_log = std::fs::read_to_string(logs.join("voice.log"))
.expect("read captured core log after voice delivery");
+ assert!(
+ voice_log.contains("[voice message]"),
+ "captured core log should retain the content-free voice preview"
+ );
assert!(
!voice_log.contains("the dictated voice request"),
"voice transcripts must not be written to the core log"