Repository navigation
fix(status): report a deleted latest snapshot as absent instead of failing - #588
Open
princejain756 wants to merge 1 commit into
Open
princejain756 wants to merge 1 commit into
princejain756 wants to merge 1 commit into
Conversation
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
force-pushed
the
fix/status-deleted-latest-snapshot
branch
from
November 28, 2026 04:41
dda19d3 to
64d26d7
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #537.
agent-desktop statuspropagatedSNAPSHOT_NOT_FOUNDwhenlatest_snapshot_idnamed 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_countnull) while other load errors still fail the command. Verified on this Linux build: with a danglinglatest_snapshot_id,statuswent fromok:falseSNAPSHOT_NOT_FOUNDrc=1 took:truerc=0 withref_count:null.cargo test --bin agent-desktop: 228 passed; clippy-D warningsclean; fmt clean on the pinned toolchain. New unit tests cover both a present latest snapshot and a dangling pointer.