Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

test: target mounted voice input in radio takeover gate

Said9fd434438b05
diff --git a/changelog.d/1268-radio-issue-fix.md b/changelog.d/1268-radio-issue-fix.md
index de6b0bcae..7a5be28b7 100644
--- a/changelog.d/1268-radio-issue-fix.md
+++ b/changelog.d/1268-radio-issue-fix.md
@@ -1 +1,2 @@
- Normalize station tags and retain valid mixed rows (asturksever, #1268).
+- Correct Radio QA push-to-talk setup to target the mounted voice controller (asturksever, #1268).
diff --git a/scripts/qa-radio.mjs b/scripts/qa-radio.mjs
index 648075bd2..cfc601ca3 100644
--- a/scripts/qa-radio.mjs
+++ b/scripts/qa-radio.mjs
@@ -2761,13 +2761,16 @@ async function main() {
const beforeSpace = radio.getUIState().audioState;
// Simulate an already-started hold-Space session; click-started open mic
// deliberately ignores Space takeover, and short taps never claim voice.
- const priorPushToTalkMode = voice.pushToTalkMode;
- voice.pushToTalkMode = true;
+ // The provider facade forwards reads, not writes. Set the mounted
+ // controller's input owner; assigning on the facade only shadows it.
+ const controller = voice.session.adapter.controller;
+ const priorPushToTalkMode = controller.pushToTalkMode;
+ controller.pushToTalkMode = true;
document.dispatchEvent(new KeyboardEvent('keydown', { bubbles: true, cancelable: true, code: 'Space', key: ' ' }));
await new Promise((resolve) => setTimeout(resolve, 700));
const afterSpace = radio.getUIState().audioState;
document.dispatchEvent(new KeyboardEvent('keyup', { bubbles: true, cancelable: true, code: 'Space', key: ' ' }));
- voice.pushToTalkMode = priorPushToTalkMode;
+ controller.pushToTalkMode = priorPushToTalkMode;
await radio.play();
voice.setVoiceSpeaker('ai');
return { beforeSpace, afterSpace, afterAi: radio.getUIState().audioState };