mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #396] [MERGED] feat: add DELETE /snapshots/{snapshotID} endpoint #402
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#402
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/396
Author: @guozy18
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @yingdi-shan
Base:
main← Head:sync/snapshot-delete-api📝 Commits (1)
8c591bdfeat: add DELETE /snapshots/{snapshotID} endpoint📊 Changes
6 files changed (+237 additions, -1 deletions)
View changed files
📝
docs/src/concepts/snapshots/manage.md(+10 -0)📝
src/api/generated/src/apis/snapshots.rs(+25 -0)📝
src/api/generated/src/models.rs(+6 -0)📝
src/api/generated/src/server/mod.rs(+138 -1)📝
src/api/impls/snapshots.rs(+38 -0)📝
src/api/openapi.yml(+20 -0)📄 Description
What
Add DELETE /snapshots/{snapshotID} for sandbox-sourced snapshots, accepting either an ID or alias.
Why
Sandbox snapshots currently require the template deletion API despite having dedicated list/get endpoints.
Related issue
N/A — focused synchronization of an existing implementation.
Scope and non-goals
OpenAPI schema and regenerated server, snapshot handler, and endpoint documentation.
Design and behavior changes
Resolve the supplied reference, reject template records, and delete through SnapshotManager using the resolved immutable ID. Return 204 on success and 404 for missing/deleted/template records. Use the current main-branch security schemes. Generated code was produced through make agentenv-server.
Compatibility and operations
Validation
Validated on upstream main
949cec2plus this single commit, independently of the other synchronization PRs.Clippy and all 19 catalog/backend tests ran on Linux as a non-root user. Full workspace and HTTP/VM E2E suites were not run for this isolated branch.
Risks and reviewer notes
Deletion delegates to existing repository cleanup. Existing catalog/backend tests cover repository deletion and publication; a full HTTP deletion E2E was not run for this PR.
The original author, author date and commit message are preserved. Main-branch adaptations are described above.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.