agentSdkProbeBound top-level constant

Duration const agentSdkProbeBound

How long the probe waits for the first word of an answer.

Measured 2026-09-30, standalone over Node 20:

  • credentialed (ambient Claude Code login): answered after 2.3–2.6 s, start-up included — the whole cost a working run pays;
  • an unusable key (the pinned Agent SDK retries the 401 silently): "no model" after exactly the bound, 10.2 s at a 10 s bound; the a test suite then skipped both tests after 30 s, where it had failed after two 120 s stalls.

Thirty seconds is an order of magnitude over the answered case and a quarter of the stall bound the uncredentialed run used to wait out.

Implementation

const agentSdkProbeBound = Duration(seconds: 30);