From e04c2a9ebd42d0ee151db68cd65dba392d7dc511 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 28 Jul 2026 10:42:03 -0700 Subject: [PATCH] test: update voice-submission test for _VoiceInputMessage sentinel (#65827) --- tests/tools/test_clipboard.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" # ═════════════════════════════════════════════════════════════════════════