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 transcripts stay out of core log

Steven Enamakel8d25240625d4
diff --git a/tests/native_channel_session_restart_e2e.rs b/tests/native_channel_session_restart_e2e.rs
index e6cf9dcb77..98b6ac1ed0 100644
--- a/tests/native_channel_session_restart_e2e.rs
+++ b/tests/native_channel_session_restart_e2e.rs
@@ -873,5 +873,11 @@ async fn telegram_voice_note_runs_scoped_stt_agent_and_mirror_tts_through_module
.any(|window| window == b"OggS"),
"TinyVoice converts the WAV TTS response to Ogg before Telegram sendVoice"
);
+ let voice_log = std::fs::read_to_string(logs.join("voice.log"))
+ .expect("read captured core log after voice delivery");
+ assert!(
+ !voice_log.contains("the dictated voice request"),
+ "voice transcripts must not be written to the core log"
+ );
core.stop();
}