mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-29 04:25:52 +01:00
fix(runner): restore remote session checkpoints
This commit is contained in:
1 parent
0bbabbaf1c
commit
42e8ac9d6f
5 files changed
+69
-5
No files matched your search
@@ -298,6 +298,20 @@ describe("verified native harness backups", () => {
|
||||
},
|
||||
});
|
||||
|
||||
const continuationExecution = {
|
||||
...backupExecution,
|
||||
binding: {
|
||||
...backupExecution.binding,
|
||||
runId: "run-2",
|
||||
executionWorkspaceId: "run-2",
|
||||
},
|
||||
} as NativeExecutionInputV1;
|
||||
expect(verifyNativeHarnessBackup({
|
||||
root,
|
||||
execution: continuationExecution,
|
||||
runnerInstanceId: "runner-1",
|
||||
})).not.toBeNull();
|
||||
|
||||
await writeFile(join(current, "codex-home", "sessions", "thread.jsonl"), "corrupt");
|
||||
expect(verifyNativeHarnessBackup({
|
||||
root,
|
||||
|
||||
@@ -923,8 +923,9 @@ function nativeHarnessEnvironmentFingerprint(
|
||||
.update(
|
||||
canonicalJson({
|
||||
companyId: execution.binding.companyId,
|
||||
agentId: execution.binding.agentId,
|
||||
issueId: execution.binding.issueId,
|
||||
normalizedSessionId: nativeSessionKey(execution),
|
||||
executionWorkspaceId: execution.binding.executionWorkspaceId,
|
||||
workspace: {
|
||||
cwd: execution.workspace.cwd,
|
||||
repoUrl: execution.workspace.repoUrl,
|
||||
|
||||
Reference in new issue
Block a user