1304
return { model: realModel, sessionResource: newItem.resource, newSessionResource: newItem.resource };
1305
} catch (err) {
1306
>
// Resolve (not reject) so a concurrent waiter degrades to the normal
chatServiceImpl.ts
1307
>
// untitled path rather than inheriting this failure, then propagate the
1308
>
// error to the originating caller. The forward mapping is only published
1309
>
// on success, so there is nothing to roll back here.
1310
>
materialized.complete(undefined);
1311
>
throw err;
1312
} finally {
1313
if (this._inFlightUntitledMaterializations.get(untitledResource) === materialized.p) {