Leave the glasses when idle; new conversation after a long silence (0.1.1)
On a real G2 the app, while open, occupied the display indefinitely and a phone notification did not reach the lenses. The app now leaves the glasses by itself (shutDownPageContainer(0), no dialog) after a resting screen has been untouched: 20 s on an answer, 30 s at Ready, 10 s on an error or "Cancelled". Any gesture restarts the countdown. It never leaves while recording, transcribing, waiting for the agent or for an approval. It is armed only once the glasses are in use (a gesture arrived, or the session was opened from the glasses, which includes voice launch), and touching the phone page holds it open for two minutes, so setting up on the phone is not interrupted. Because the app now closes between questions, a question more than ten minutes after the last one starts a new conversation; sooner continues it. Diagnostics shows how the session was opened. Version 0.1.1. Tests: 233 unit/integration; simulator 7. Not reviewed, not deployed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,14 @@ export interface DevicePort {
|
||||
onConnection(listener: (connected: boolean) => void): () => void;
|
||||
/** Ask the OS to show its own exit confirmation. */
|
||||
requestExit(): Promise<void>;
|
||||
/**
|
||||
* Leave the glasses now, with no confirmation, returning them to their normal screen. Used
|
||||
* when the app has been idle: while it is open it occupies the display and (seen on a real
|
||||
* G2) phone notifications do not reach the lenses.
|
||||
*/
|
||||
exitNow(): Promise<void>;
|
||||
/** Optional: how this session was opened (`glassesMenu` covers the menu and voice launch). */
|
||||
onLaunchSource?(listener: (source: 'appMenu' | 'glassesMenu') => void): () => void;
|
||||
/**
|
||||
* Read a stored value. `{ ok: false }` means the host did not answer (or failed): the value
|
||||
* is UNKNOWN, which is different from "nothing stored" (`{ ok: true, value: '' }`).
|
||||
|
||||
Reference in New Issue
Block a user