Skip to content

Rest

Rest = { kind: "timed"; seconds: number; } | { kind: "untilUserContinues"; } | { kind: "none"; }

Defined in: console-sdk/src/session/types.ts:47

A rest period between intervals (SDK_PLAN.md §3.3.4). Three honest behaviors, none of which leaks the firmware’s UNDEFINED_REST_SENTINEL = 3600 (row 29):

  • timed: a fixed countdown of seconds, then auto-advance. A seconds of 0 is equivalent to none (an immediate advance).
  • untilUserContinues: HOLD — the workout waits (never auto-advances) until the athlete continues (in-app continueFromRest(), or, in sequential mode, motion on the next machine / a KEY_SELECT press). This is the default an omitted rest normalizes to.
  • none: IMMEDIATE / back-to-back — the next interval starts with no wait and no Continue tap. Used for a hand-off with no pause (e.g. a bike → rower → ski relay’s intra-round transitions). A none rest never produces a resting phase; it is a straight advance.