Member Junction
    Preparing search index...

    Type Alias RealtimeChannelCloseReason

    RealtimeChannelCloseReason: "Explicit" | "Janitor" | "Shutdown" | "Error"

    Why an agent session was closed — the server-side channel plugin's view of the session-close provenance. Mirrors the MJ: AI Agent Sessions.CloseReason value list (SessionCloseReason in @memberjunction/server): 'Explicit' (user hang-up), 'Janitor' (orphan reconciliation), 'Shutdown' (graceful host drain), 'Error' (failure-path teardown). null reaches the plugin only for legacy rows closed before the column existed (or when the reason was never stamped).