fix(boat): scope native cleanup to the remote owner

This commit is contained in:
Dotta committed 2026-10-10 20:34:42 -05:00
1 parent 610c78a5ad
commit 3e04b21f99
2 files changed
+15 -4

No files matched your search

@@ -8847,7 +8847,8 @@ async function executePaperclipNativeSessionWithinScope(
})
: null;
const remoteCleanupLease = input.runnerExecutionTarget?.kind === "remote" &&
input.runnerExecutionTarget.transport === "sandbox" && input.runnerExecutionTarget.leaseId
(input.runnerExecutionTarget.transport === "sandbox" || input.runnerExecutionTarget.transport === "computer") &&
input.runnerExecutionTarget.leaseId
? await input.db.select({ provider: environmentLeases.provider, providerLeaseId: environmentLeases.providerLeaseId })
.from(environmentLeases).where(and(
eq(environmentLeases.companyId, input.execution.binding.companyId),