Handle durable cancellation before workspace failure recovery

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-09-29 23:15:13 -05:00
1 parent 05d8b40a06
commit 4597967f89
1 file changed
+5
+5
View File
@@ -24770,6 +24770,11 @@ export function heartbeatService(
await completeWorkspace();
}
} catch (adapterErr) {
if (adapterErr instanceof NativeCancellationPendingRecoveryError) {
// Durable cancellation is settled by the outer recovery handler;
// it does not imply a failed workspace or a persisted run result.
throw adapterErr;
}
if (adapterErr instanceof NativeWorkspaceFinalizationBusyError
|| adapterErr instanceof NativeWorkspaceFinalizationOwnershipLostError) {
nativeWorkspaceFinalizeScheduled = true;