An open-source, faster Devin alternative
TypeScript
Merge pull request #529 from diggerhq/merged-disk
Brian Reardone4dfc8aa8bd2
diff --cc internal/qemu/manager.goindex f4906655,1f865afb..cccd00b1--- a/internal/qemu/manager.go+++ b/internal/qemu/manager.go@@@ -3493,17 -3720,11 +3726,19 @@@ func (m *Manager) CreateDiskOnlyCheckpo}m.agentFsThawAfterWake(context.Background(), sandboxID, vm.agent)frozen = false+ // vCPUs were stopped for the disk copy (usually sub-second reflink, but a+ // non-reflink fallback copy can run longer) — re-sync the guest clock to+ // host time, matching the full-checkpoint path.+ if vm.agent != nil {+ if err := syncGuestClock(context.Background(), vm.agent); err != nil {+ log.Printf("qemu: DiskOnlyCheckpoint %s/%s: clock sync failed: %v", sandboxID, checkpointID, err)+ }+ }rootfsKey = fmt.Sprintf("checkpoints/%s/%s/rootfs.tar.zst", sandboxID, checkpointID)- workspaceKey = fmt.Sprintf("checkpoints/%s/%s/workspace.tar.zst", sandboxID, checkpointID)+ if !merged {+ workspaceKey = fmt.Sprintf("checkpoints/%s/%s/workspace.tar.zst", sandboxID, checkpointID)+ }meta := &SnapshotMeta{SandboxID: vm.ID,Network: vm.network,