AI agent instructions
AI agent instructions
SESSION_START_TRIES times on 5xx errors, waiting
CLUSTER_OVERLOAD_RETRY_DELAY_MS on HTTP 529 (cluster overload). 4xx
errors are never retried.
Managed-auth sessions wait for readiness by default. Pass
{ wait_for_authentication: false } for an explicit nonblocking start,
then call waitForAuth() before executing actions or connecting over CDP.
Cancellation during creation waits for its response so the new session can
be closed. Cancellation or failure during the startup wait also closes it.
Prefer session.use(async session => { ... }), which also stops the session.
Parameters
SessionStartOptions
Default: