Skip to content

fix: restore missing managed template files - #55

Merged
dapi merged 1 commit into
mainfrom
agent/restore-missing-template-assets
Aug 14, 2026
Merged

fix: restore missing managed template files#55
dapi merged 1 commit into
mainfrom
agent/restore-missing-template-assets

Conversation

@dapi

@dapi dapi commented Aug 14, 2026

Copy link
Copy Markdown
Owner

What changed

  • pull --ask now explicitly offers restoring a missing user-owned path from the canonical template.
  • An affirmative overwrite or restore choice recreates the file and records it as managed.
  • Added regression coverage for direct ownership resolution and the interactive CLI path.

Why

A legacy lock can mark a root-level template asset as user-owned even after it was removed locally. Previously pull could only report a conflict; it could not restore the canonical asset through its interactive resolver.

Validation

  • mise exec go@1.21.13 -- go test ./internal/ownership
  • mise exec go@1.21.13 -- go vet ./...
  • git diff --check

Note: go test ./internal/cli is blocked locally before test execution by the host dyld: missing LC_UUID load command error.

@dapi
dapi marked this pull request as ready for review August 14, 2026 01:46
@dapi
dapi merged commit 9ada474 into main Aug 14, 2026
4 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