fix(runtime): allow supervised identity reads within startup deadline

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-10 10:10:36 -05:00
1 parent fa9c3451a0
commit b43a695170
2 files changed
+37 -1

No files matched your search

@@ -10964,7 +10964,10 @@ async function waitForRemoteRunnerProcessIdentity(input: {
input.identityPath,
],
bypassSession: true,
timeoutMs: 2_000,
// An owned remote command includes SSH and supervisor admission before
// reading this tiny file. Its normal roundtrip can exceed two seconds.
// Give the RPC room while preserving the total identity-wait deadline.
timeoutMs: Math.max(1, Math.min(10_000, deadline - Date.now())),
})
.catch(() => null);
const identity =