Skip to content

fix(sdk): fail closed on remove/prune host detach and wipe - #530

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-sdk-cleanup-fail-closed-detach
Sep 18, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-sdk-cleanup-fail-closed-detach

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • SDK cleanup_removed_box returns Err on lease/:ro detach or box-dir wipe failure (was retain-dir + Ok).
  • prune_boxes cleans host first, then deletes state.
  • CLI cleanup_removed_box also fails closed on wipe failure.
  • Does not close B3/B2.

Test plan

  • cargo check -p a3s-box-sdk -p a3s-box-cli
  • Linux CI when runners resume

Made with Cursor

Do not invent Ok while retaining host-netdevice or :ro aliases; prune
cleans host resources before deleting box state (CLI parity).

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 44f5e2e into main Sep 18, 2026
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.

1 participant