CODY-025: stopped or replaced speech never starts; CODY-026: README; note when the phone page holds off idle exit
- ui/speaker.ts: a generation counter. Every play() and stop() advances it; a play() that finds it changed after resume() or decodeAudioData() returns without creating a source. - apps/even-client/test/speaker.test.ts: nine tests with a fake sound engine whose resume and decode finish when the test says. - README: 'Not in this slice' no longer says text-to-speech is absent. - controller: one diagnostic line when phone-page activity starts holding off the idle exit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -846,6 +846,8 @@ export class Controller {
|
||||
|
||||
/** The phone page is being used (touch or key): do not leave under the user's fingers. */
|
||||
notePhoneActivity(): void {
|
||||
// Said once per stretch of use, so a session that did not leave by itself can be explained.
|
||||
if (this.now() >= this.phoneBusyUntil) this.note('lifecycle', 'phone page touched: not leaving the glasses while it is in use');
|
||||
this.phoneBusyUntil = this.now() + this.phoneGraceMs;
|
||||
this.scheduleIdleExit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user