feat(memory): release Mnemo project bridge and schema2 recovery
Official contracts and Windows source CI / windows-source (push) Has been cancelled
Official contracts and Windows source CI / windows-source (push) Has been cancelled
This commit is contained in:
@@ -228,6 +228,11 @@ export class Provider {
|
||||
return responseDetails;
|
||||
};
|
||||
try {
|
||||
if (body && options.beforePhysicalDispatch) {
|
||||
await options.beforePhysicalDispatch({ attemptId: receipt.attemptId, body });
|
||||
signal?.throwIfAborted();
|
||||
options.beforeDispatch?.({ previousFailure });
|
||||
}
|
||||
dispatched = true;
|
||||
const transport=this.fetcher?null:(this.transport??=new ModelTransport());
|
||||
if(transport)onProgress?.({phase:'running',transport:transport.profile,attempt,maxAttempts:policy.attempts,wireAttemptId:receipt.attemptId});
|
||||
@@ -315,6 +320,9 @@ export class Provider {
|
||||
onProgress?.({ phase: 'completed', attempt, maxAttempts: policy.attempts, durationMs: Date.now() - startedAt, modelIdentity: receipt.modelIdentity });
|
||||
return result;
|
||||
} catch (error) {
|
||||
// No HTTP has been submitted. The runtime can prepare the original
|
||||
// task without its now-invalid optional remote memory, once.
|
||||
if (!dispatched && error.code === 'PROJECT_SELECTION_STALE') throw error;
|
||||
outcome = signal?.aborted ? 'interrupted' : readingStream && !streamTerminalSeen ? 'unknown' : 'failed';
|
||||
signal?.throwIfAborted();
|
||||
let diagnostic = connectionFailure(error, { ...context, method:body?'POST':'GET',responseReceived:receipt.httpStatus!==undefined,
|
||||
|
||||
Reference in New Issue
Block a user