Member Junction
    Preparing search index...

    Type Alias SessionCloseReason

    SessionCloseReason: NonNullable<MJAIAgentSessionEntity["CloseReason"]>

    Why a session was closed — persisted to AIAgentSession.CloseReason alongside the Status = 'Closed' transition so the admin dashboards can distinguish a user hanging up (Explicit) from janitor reconciliation (Janitor, an orphan from an earlier boot), a graceful host drain (Shutdown), a failure-path teardown (Error), an expired authored deadline (TimeLimit) or a session left quiet past the idle threshold (Idle). NULL in the column means "legacy/unknown" — rows closed before this column existed.

    Derived from the generated entity so the column's CHECK constraint stays the single source of truth.