maxForegroundSleepSeconds top-level constant
int
const maxForegroundSleepSeconds
Foreground sleep deny threshold (issue #1349): a bare sleep longer
than this is rejected at call validation. A bare long sleep is never
legitimate foreground work — it parks the whole turn (steering and the
cancel path cannot reach the agent while the call stays open) — while
real long work (builds, test suites) keeps its foreground path.
Implementation
const int maxForegroundSleepSeconds = 60;