feat(voice): harden Gemini Live provider integration

This commit is contained in:
manjunath committed 2026-10-16 17:09:03 +05:30
1 parent d4492d8f8c
commit 4fde920665
102 files changed
+28528 -1581

No files matched your search

+6
View File
@@ -182,3 +182,9 @@ test('chip: "this" names an entity, "here" gives the ground coordinate', () => {
assert.deepEqual(pointerChip(ground), { kind: 'here', label: '30.27, -97.74' });
assert.equal(pointerChip(null), null);
});
test('a captured hold does not replace an active referent until explicit admission, including after release',()=>{
const h=harness();h.tracker.moveTo(300,200);const old=h.tracker.beginTurn('text');h.tracker.moveTo(600,250);const captured=h.tracker.hold('keydown');
assert.equal(h.tracker.activeSnapshot(),old);h.tracker.releaseHold();assert.equal(h.tracker.activeSnapshot(),old);
assert.equal(h.tracker.beginTurn('speech_start',{capturedSnapshot:captured}),captured);assert.equal(h.tracker.activeSnapshot(),captured);assert.notDeepEqual(captured.screenPx,old.screenPx);
});