Live preview is for Agents only; CODY-023; simulator screenshots wait for the draw
Dan, after the Round 19 review: "I'd only invoke the live transcription
when in agent sub-app." The preview now runs only in Agents mode. In
hands free a recording, whether started by a name or by a tap, is never
previewed; the only audio sent for transcription there is the wake check
and the question itself. "Heard:" is unchanged in both modes. He also
ruled out sending the hands-free listener's audio to a paid service;
decision 0005 records both.
CODY-023: the README status table now states one SHA or version per
surface (server 44ea114, beta client 0.3.0, repository client 0.4.0
candidate), nine simulator scenarios and what the ninth does and does not
cover, and the evidence level of 0.3.0 and 0.4.0.
Simulator suite: the answer and page-turn screenshots poll until the
display shows the expected change instead of sleeping a fixed 800-900 ms.
One of five runs had failed there (the answer page was not yet drawn).
Not reviewed, not deployed, not uploaded, not device-tested.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -654,19 +654,29 @@ describe('glasses: words shown while recording', () => {
|
||||
await until('answer', () => phase() === 'answer');
|
||||
});
|
||||
|
||||
it('works in hands free too, for the question that follows a name', async () => {
|
||||
// One preview only, so the scripted recogniser's replies line up.
|
||||
extras = { livePreview: { firstMs: 300, stepMs: 60_000, pauseMs: 200 } };
|
||||
it('is for Agents only: in hands free no recording is previewed, by name or by tap', async () => {
|
||||
extras = { livePreview: { firstMs: 300, stepMs: 300, pauseMs: 200 } };
|
||||
await paired();
|
||||
await listening();
|
||||
h.stt.next({ text: 'Wendy' }, { text: 'are you' }, { text: 'are you there' });
|
||||
h.stt.next({ text: 'Wendy' }, { text: 'are you there' }, { text: 'a tapped one' });
|
||||
say(0.5);
|
||||
await until('recording for Wendy', () => phase() === 'listening');
|
||||
device.speak(0.6);
|
||||
await until('words', () => device.frame.body === 'Wendy is listening…\n\nare you');
|
||||
device.speak(1.2);
|
||||
await pause(80);
|
||||
expect(device.frame.body).toBe('Wendy is listening…\n\nAsk your question. It is sent when you stop speaking.');
|
||||
device.silence(1.4);
|
||||
await until('answer', () => phase() === 'answer');
|
||||
expect(h.hermes.executedBy).toEqual(['wendy']);
|
||||
expect(snapshot.lastTurn?.input_text).toBe('are you there');
|
||||
await listening();
|
||||
device.tap();
|
||||
await until('recording', () => phase() === 'listening');
|
||||
device.speak(1.2);
|
||||
await pause(80);
|
||||
device.tap();
|
||||
await until('second answer', () => phase() === 'answer' && h.hermes.executions === 2);
|
||||
expect(snapshot.lastTurn?.input_text).toBe('a tapped one');
|
||||
expect(posts('/v1/transcribe')).toBe(0);
|
||||
// What was sent is still shown while the agent works: that is the turn's own transcript.
|
||||
expect(h.stt.calls).toBe(3);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user