Description
src/standby.ts switches to standby mode immediately when inactivity is detected. During startup, normal initialization traffic can falsely trigger standby too early. A configurable warm-up period during which standby is suppressed prevents premature activation.
Acceptance Criteria
Context
- Target file:
src/standby.ts
- Use
src/timeMachine.ts to advance time in tests
Description
src/standby.tsswitches to standby mode immediately when inactivity is detected. During startup, normal initialization traffic can falsely trigger standby too early. A configurable warm-up period during which standby is suppressed prevents premature activation.Acceptance Criteria
StandbyControlleraccepts awarmUpMs?: numberoption (default: 0, i.e., no warm-up)Context
src/standby.tssrc/timeMachine.tsto advance time in tests