Skip to content

fix(status): report a deleted latest snapshot as absent instead of failing - #588

Open
princejain756 wants to merge 1 commit into
vercel-labs:mainfrom
princejain756:fix/status-deleted-latest-snapshot
Open

princejain756 wants to merge 1 commit into
vercel-labs:mainfrom
princejain756:fix/status-deleted-latest-snapshot

Conversation

@princejain756

Copy link
Copy Markdown

Fixes #537.

agent-desktop status propagated SNAPSHOT_NOT_FOUND when latest_snapshot_id named a snapshot whose directory had already been deleted, so the health check failed until the pointer was removed by hand. Callers that delete their own snapshots when they finish hit this on every machine afterward.

Now a missing snapshot is reported as absent (snapshot_id/ref_count null) while other load errors still fail the command. Verified on this Linux build: with a dangling latest_snapshot_id, status went from ok:false SNAPSHOT_NOT_FOUND rc=1 to ok:true rc=0 with ref_count:null. cargo test --bin agent-desktop: 228 passed; clippy -D warnings clean; fmt clean on the pinned toolchain. New unit tests cover both a present latest snapshot and a dangling pointer.

@vercel

vercel Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@princejain756 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

…iling

status propagated SNAPSHOT_NOT_FOUND when latest_snapshot_id named a
snapshot whose directory was already deleted, so the health check kept
failing until the pointer was removed by hand. Treat that specific
missing-snapshot case as absent (snapshot_id and ref_count null) while
other load errors still fail the command.

Closes vercel-labs#537
@princejain756
princejain756 force-pushed the fix/status-deleted-latest-snapshot branch from dda19d3 to 64d26d7 Compare November 28, 2026 04:41

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: status fails with SNAPSHOT_NOT_FOUND when the latest snapshot was deleted

1 participant