95
96
case ActionType.SessionReady:
97
>
// `SessionReady` is purely a lifecycle transition (Creating ->
reducer.ts
98
>
// Ready). It must not touch `status`: for provisional sessions the
99
>
// first turn can start before materialization completes, so an
100
>
// `activeTurn` may already be set when this action is dispatched
101
>
// (e.g. from a materialize-session handler). Other reducers keep
102
>
// `status` in sync with the activity state, so leaving it alone here
103
>
// is correct.
104
>
return { ...state, lifecycle: SessionLifecycle.Ready };
105
106
case ActionType.SessionCreationFailed: