mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-02 19:08:33 +01:00
Integrate cancellation-save coverage and execution release compatibility
Co-Authored-By: Paperclip <noreply@paperclip.ing> * codex/work-folders-staging-hardening-refresh: test: retain sandbox saves through native startup cancellation fix: read cancellation evidence for keyed execution release Move preview-upgrade regression coverage to the final acceptance layer
This commit is contained in:
commit
e8dbe42e66
3 files changed
+160
-99
No files matched your search
@@ -25357,11 +25357,16 @@ export function heartbeatService(
|
||||
options: { suppressImmediateRecovery?: boolean } = {},
|
||||
) {
|
||||
try {
|
||||
// Some release paths carry only the durable run key. Read authoritative
|
||||
// cancellation evidence before deciding whether automatic recovery is allowed.
|
||||
const latestRun = options.suppressImmediateRecovery ? null : await getRun(run.id);
|
||||
const operatorCancelled = latestRun?.companyId === run.companyId
|
||||
&& isOperatorCancelledRun(latestRun, latestRun.agentId);
|
||||
const { postCommitEffects } = await wakeQueue.releaseIssueExecution({
|
||||
companyId: run.companyId,
|
||||
runId: run.id,
|
||||
now: new Date(),
|
||||
suppressImmediateRecovery: options.suppressImmediateRecovery || isOperatorCancelledRun(run, run.agentId),
|
||||
suppressImmediateRecovery: options.suppressImmediateRecovery || operatorCancelled,
|
||||
});
|
||||
await applyWakeQueuePostCommitEffects(postCommitEffects);
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user