Repository navigation
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8a79efe. Configure here.
| stored.ProgramStartedAt = nil | ||
| stored.GuestAgentReadyAt = nil | ||
| // A crash after a graceful stop must not leave a stale graceful receipt behind. | ||
| stored.StopGraceful = false |
There was a problem hiding this comment.
Stale graceful receipt after start
Medium Severity
StopGraceful is cleared only in memory at the start of startInstance and persisted after the VM is already running. A crash or a failed saveMetadata in that window leaves the prior graceful receipt on disk, so a later stopped snapshot can capture a disk that is no longer consistent.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 8a79efe. Configure here.
8a79efe to
10c8f44
Compare
10c8f44 to
0bc847d
Compare
0bc847d to
bcd99d3
Compare
bcd99d3 to
0aedf45
Compare
2e09087 to
28fb9ac
Compare
28fb9ac to
17c3d4d
Compare
17c3d4d to
53b1a79
Compare
53b1a79 to
fa7578a
Compare
fa7578a to
bb25ff9
Compare
0143542 to
d58bc88
Compare
2837f91 to
b00a480
Compare
ab7735c to
8dcb528
Compare
…e, and stopped clones Stopped snapshots after a graceful stop, same-instance restore through a staged disk swap, experimental same-instance standby, and clones from a stopped source with a fresh machine identifier, MAC and SSH host keys.
8dcb528 to
de4d869
Compare


Summary
PR 4 of 6: stopped snapshots, same-instance standby/restore, and cold forks of stopped instances or snapshots. Base: #500.
Validation
-race.Limitations
Saved-state restore is experimental and may fail; failure leaves the instance in Standby. Hostname, account credentials and application-specific identities are outside the SSH-key rekey contract. Memory snapshot forks and cross-host saved-state portability remain unsupported.
Stack
#498 runtime and lifecycle → #499 OCI images → #500 guest service → #506 snapshots and stopped forks → #503 image builds → #501 guest-port forwarding.