Idle exit starts however the app was opened (0.1.2)
On a real G2 with build 0.1.1, a voice launch with nothing touched never left the glasses: no glassesMenu launch source reached the app, so the countdown was never armed. After one swipe it left as designed. The countdown now runs however the session was opened. The launch source is kept for Diagnostics only. Setting up on the phone stays protected: nothing leaves while unpaired, and a touch on the phone page holds the app open for the grace period. Dan approved the change after the trial. Also records the 0.1.1 trial, Dan's keep/change decisions (contract section F) and the 0.1.1 upload. Version 0.1.2. Not reviewed, not uploaded. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -353,11 +353,7 @@ describe('Even Hub simulator 0.9.5', () => {
|
||||
await launchSimulator('fast', h.bridge.devices.createPairingCode().code);
|
||||
await waitConsole('hud: HUD page created', 30_000, from);
|
||||
await waitConsole('-> ready', 20_000, from);
|
||||
await new Promise((r) => setTimeout(r, 6_500));
|
||||
await pumpConsole();
|
||||
// Opened by URL, no gesture yet: not armed, so it must still be there.
|
||||
expect(consoleLines.slice(from).some((l) => l.includes('leaving the glasses'))).toBe(false);
|
||||
await input('down'); // a glasses gesture arms it
|
||||
// No gesture and no launch source: it leaves from Ready after the (shortened) wait.
|
||||
await waitConsole('leaving the glasses: idle on ready', 15_000, from);
|
||||
await new Promise((r) => setTimeout(r, 1_500));
|
||||
await pumpConsole();
|
||||
|
||||
Reference in New Issue
Block a user