Skip to content

fix(cli): fail closed prune and system-prune wipe - #537

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/cli-prune-fail-closed
Sep 18, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/cli-prune-fail-closed

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • CLI prune and system-prune fail closed on host wipe / state-remove errors
  • Failed box stays in state; command cannot invent prune success (SDK #530 parity)
  • Does not close ROADMAP B4/B3/B2 or unlock UDP/host_port=0

Test plan

  • cargo test -p a3s-box-cli --lib commands::prune::tests (2 passed)
  • cargo test -p a3s-box-cli --lib commands::system_prune::tests::system_prune_box_cleanup_error (1 passed)

Do not warn-and-claim prune success when cleanup_removed_box or state
remove fails; keep the box record and return Err (SDK prune_boxes parity).

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit f592635 into main Sep 18, 2026
2 of 7 checks passed
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