Skip to content

fix(delete): copy fixes — reclaim hint + launcher-neutral preview#381

Merged
LukasWodka merged 2 commits into
developfrom
fix/delete-reclaim-hint
Jul 21, 2026
Merged

fix(delete): copy fixes — reclaim hint + launcher-neutral preview#381
LukasWodka merged 2 commits into
developfrom
fix/delete-reclaim-hint

Conversation

@LukasWodka

@LukasWodka LukasWodka commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

The image-reclaim failure hint suggested docker rmi $(docker images ghcr.io/tracebloc/* --format …) — an unquoted positional glob. zsh (macOS default) aborts on the unmatched glob before docker runs, and the positional form doesn't apply the reference pattern the way PruneImages does. The hint now uses the same quoted --filter=reference='ghcr.io/tracebloc/*' form nodeboot uses for the real reclaim.

Fixes the Bugbot finding from the release PR #377 re-scan (thread there already resolved; this fixes the underlying copy). One line + not release-blocking — fine to ride either this release or the next.

Related

Ref #377.

Type of change

  • Bug fix

Test plan

  • go build ./..., go test ./internal/cli/ -count=1, bash scripts/check-style.sh — all clean
  • Hint string verified against nodeboot.go's reclaim listing (--filter=reference="ghcr.io/tracebloc/*")

Checklist

  • Tests added / updated and passing locally
  • go build ./..., go vet, and the Lint job's checks pass locally
  • Terminal output follows STYLE.md — bash scripts/check-style.sh passes
  • No secrets / credentials in the diff

🤖 Generated with Claude Code


Note

Low Risk
User-facing strings only in the delete/offboard path; no behavior or credential logic changes.

Overview
Offboard copy is tightened in two user-facing places.

When image reclaim fails during delete, the suggested manual cleanup command now uses docker images --filter=reference='ghcr.io/tracebloc/*' instead of a positional ghcr.io/tracebloc/* glob. That matches how PruneImages lists images and avoids zsh aborting on an unmatched glob before Docker runs.

The pre-confirm offboard preview refers to the tracebloc CLI instead of the tb CLI, so the wording stays accurate when the tb alias is not installed.

Reviewed by Cursor Bugbot for commit e2682d5. Bugbot is set up for automated code reviews on this repo. Configure here.

The hint suggested `docker images ghcr.io/tracebloc/* --format …` — an
unquoted positional glob. zsh (the macOS default) aborts on the unmatched
glob before docker even runs, and the positional form doesn't apply the
reference pattern the way PruneImages does. Use the same quoted
--filter=reference form nodeboot uses for the real reclaim.

Bugbot finding on the release PR (#377), thread already resolved there —
this fixes the underlying copy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@LukasWodka LukasWodka self-assigned this Jul 21, 2026
@LukasWodka
LukasWodka requested a review from saadqbal July 21, 2026 13:04
@LukasWodka

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit a29bd5a. Configure here.

The preview said it removes "the tb CLI", but not every install has the
tb alias. Name the artifact the way the teardown result line already
does ("Removed the tracebloc CLI from this machine.") — accurate on
every install, no launcher resolution needed for descriptive copy.

Bugbot finding on the release PR (#377), round 3.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@LukasWodka LukasWodka changed the title fix(delete): make the image-reclaim recovery hint copy-pasteable fix(delete): copy fixes — reclaim hint + launcher-neutral preview Jul 21, 2026
@LukasWodka

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit e2682d5. Configure here.

@LukasWodka
LukasWodka merged commit b5aa67c into develop Jul 21, 2026
21 checks passed
@LukasWodka
LukasWodka deleted the fix/delete-reclaim-hint branch July 21, 2026 13:22
@saadqbal

Copy link
Copy Markdown
Collaborator

/fr-pass

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.

2 participants