Skip to content

The agent that grows with you

test: update voice-submission test for _VoiceInputMessage sentinel (#65827)

Tekniume04c2a9ebd42
diff --git a/tests/tools/test_clipboard.py b/tests/tools/test_clipboard.py
index 4a3b31ee56a..b8b6088c94a 100644
--- a/tests/tools/test_clipboard.py
+++ b/tests/tools/test_clipboard.py
@@ -1079,7 +1079,12 @@ class TestVoiceSubmission:
cli._voice_stop_and_transcribe()
assert cli._attached_images == []
- assert cli._pending_input.get_nowait() == "hello"
+ queued = cli._pending_input.get_nowait()
+ # Voice transcripts are wrapped in the _VoiceInputMessage sentinel
+ # (#65827) so process_loop can distinguish STT output from typed text.
+ from cli import _VoiceInputMessage
+ assert isinstance(queued, _VoiceInputMessage)
+ assert queued.text == "hello"
# ═════════════════════════════════════════════════════════════════════════