Skip to content

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

chore(debug): tighten voice note replay detection

Steven Enamakel932ee3c2de34
diff --git a/scripts/debug/web-scripts/chat-voice-note-replay.mjs b/scripts/debug/web-scripts/chat-voice-note-replay.mjs
index a8a1fdb902..6cc998c2fc 100644
--- a/scripts/debug/web-scripts/chat-voice-note-replay.mjs
+++ b/scripts/debug/web-scripts/chat-voice-note-replay.mjs
@@ -52,6 +52,8 @@ export default async function voiceNoteReplay({ page, mock, log, screenshot }) {
typedVoiceNoteSent =
params.source === "voice_note" &&
!!typedVoiceNoteId &&
+ params.message === TRANSCRIPT &&
+ !/\[(?:FILE|VOICE):/i.test(params.message) &&
!typedVoicePart.voiceNote?.media?.url &&
typedVoicePart.voiceNote?.durationMs > 0;
log(`voice-note chat RPC carried typed media: ${typedVoiceNoteSent}`);