Repository navigation
fix(uninstall): delete the scoped sandbox before removing its unit (#8220) - #8259
Merged
jyaunches merged 26 commits intoAug 6, 2026
Merged
Conversation
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.
Summary
A gateway-scoped
nemoclaw uninstallremoved the selected gateway's marked Linux unit before deleting its sandbox through that gateway.If sandbox deletion failed, later cleanup stopped and the sandbox container remained.
This change deletes the selected gateway's OpenShell resources first.
It removes the marked Linux unit only after OpenShell cleanup succeeds.
Full uninstall behavior is unchanged.
Related Issue
Fixes #8220
Changes
Stopping servicestoOpenShell resources, after selected-sandbox cleanup succeeds.--keep-openshell, and external-supervision checks shared by full and gateway-scoped cleanup.Type of Change
Quality Gates
c8544155016243c47ed24fc289f54e94da90daddagainst base SHAdb31c286129e878c3356eed49f76ab259561e47e.c8544155016243c47ed24fc289f54e94da90dadd.Documentation Writer Review
docs-updatedc8544155016243c47ed24fc289f54e94da90daddagainst base SHAdb31c286129e878c3356eed49f76ab259561e47e. The two changed documentation pages accurately describe cleanup order, failure preservation, possible partial completion, gateway inspection, and retry with the failed gateway port for the shared OpenClaw, Hermes, and LangChain Deep Agents Code uninstall path. The implementation and regression tests match that contract. The normal commit hook passed. Local tests were not run; GitHub Actions is authoritative after the PR commit is pushed.DGX Station Hardware Evidence
scripts/prepare-dgx-station-host.shdoes not change.Verification
Signed-off-by:line and every commit appears asVerifiedin GitHub — all 25 commits appear asVerified.pre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailable.c8544155016243c47ed24fc289f54e94da90dadd.c8544155016243c47ed24fc289f54e94da90dadd.npm run docsbuilds without warnings (doc changes only) — the authoritative Fern Preview check is running.Security Review
Verdict
PASS with no findings.
Reviewed PR commit
c8544155016243c47ed24fc289f54e94da90daddagainst base SHAdb31c286129e878c3356eed49f76ab259561e47e.The change corrects sequencing in the existing supported uninstall lifecycle.
It does not create a product surface or require a product, business, or architecture decision.
This security verdict does not waive repository merge gates.
Findings Table
No findings.
Detailed Analysis
--keep-openshell, and lifecycle authority.Files Reviewed
docs/manage-sandboxes/uninstall-nemoclaw.mdxdocs/reference/commands.mdxsrc/lib/actions/uninstall/run-plan-gateway-service.test.tssrc/lib/actions/uninstall/run-plan.tsGitHub Actions
GitHub Actions is authoritative for PR commit
c8544155016243c47ed24fc289f54e94da90daddagainst base SHAdb31c286129e878c3356eed49f76ab259561e47e.The new checks are running.
No required check has a maintainer waiver.
Signed-off-by: harjoth harjoth.khara@gmail.com
Summary by CodeRabbit
Bug Fixes
Documentation