1150
};
1151
}
1153
>
// Internally blank widgets use special sessions with an untitled- path.
1154
>
// We do not want these leaking out to the rest of code. On the first
1155
>
// send, convert the untitled session into a real session (idempotent
1156
>
// and serialized per untitled resource — see
1157
>
// `_materializeUntitledSession`) before processing the request.
1158
if (!model.hasRequests && isUntitledChatSession(sessionResource) && getChatSessionType(sessionResource) !== localChatSessionType) {
1159
const materialized = await this._materializeUntitledSession(sessionResource, request, options, model);