diff --git a/tests/tools/test_clipboard.py b/tests/tools/test_clipboard.py index 4a3b31ee56a5..b8b6088c94ac 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" # ═════════════════════════════════════════════════════════════════════════