Skip to content

Retain shared Candidate images during uninstall - #150

Merged
BrettKinny merged 1 commit into
mainfrom
agent/retain-shared-candidate-image
Aug 4, 2026
Merged

Retain shared Candidate images during uninstall#150
BrettKinny merged 1 commit into
mainfrom
agent/retain-shared-candidate-image

Conversation

@BrettKinny

Copy link
Copy Markdown
Collaborator

What changed

  • remove only the install-owned image alias during uninstall
  • retain published Candidate digest/tag references as shared runtime cache
  • keep Bash and native PowerShell lifecycle behavior aligned
  • add a regression test where the shared release image cannot be removed because another Box uses it

Root cause

The uninstallers treated both the install alias and the globally shared immutable Candidate reference as resources owned by one Install identity. Purging a second Box therefore failed after removing its container when another Box still used the same image.

Validation

  • all executable tests/test-*.sh tests pass
  • lifecycle ownership regression fails before the fix and passes after it
  • isolated Unraid replay against v1.2.1-rc5: second Box purged successfully, shared digest retained, existing squarebox container unchanged

@BrettKinny
BrettKinny merged commit 7a5e84e into main Aug 4, 2026
3 checks passed
@BrettKinny
BrettKinny deleted the agent/retain-shared-candidate-image branch August 4, 2026 08:38
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