bodhi-realtime-agent / SessionState
Type Alias: SessionState
SessionState =
"CREATED"|"CONNECTING"|"ACTIVE"|"RECONNECTING"|"TRANSFERRING"|"UPSTREAM_LOST"|"CLOSED"
Defined in: src/types/session.ts:21
Session lifecycle states. Transitions follow a strict state machine:
CREATED → CONNECTING → ACTIVE → RECONNECTING → ACTIVE ↓ ↓ TRANSFERRING → ACTIVE CLOSED ↓ CLOSED
Any state can transition to CLOSED on fatal error.
UPSTREAM_LOST is reachable only under upstreamLossPolicy: 'hold': the provider connection is gone (a failed first dial, or automatic recovery that ended) but the session is not finalized and its client listener stays up. It is entered from CONNECTING, ACTIVE or RECONNECTING and left for RECONNECTING (a redial) or CLOSED.