fix(runner): keep sandbox GitHub housekeeping in runner runtime

Use one runtime path for sandbox launcher staging, callback transport, and cleanup. Preserve the native observer scope and retained failures.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-06 12:11:15 -05:00
1 parent 6b8632f1f9
commit 7f66a30ad7
6 files changed
+106 -18

No files matched your search

@@ -1,8 +1,8 @@
import { randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
import { createServer } from "node:http";
import path from "node:path";
import {
cleanupGitHubOperationLaunchers,
githubOperationLauncherDirectory,
prepareGitHubOperationLaunchers,
startAdapterExecutionTargetPaperclipBridge,
} from "@paperclipai/adapter-utils/execution-target";
@@ -98,7 +98,7 @@ export async function createNativeGitHubAccess(input: {
bridge = await startBridge({
...location,
runtimeRootDir: input.target?.kind === "remote"
? path.posix.join(input.target.remoteCwd, ".paperclip-runtime", "github", location.runId)
? githubOperationLauncherDirectory(location)
: null,
adapterKey: "native-github",
hostApiToken: token,