Supersede versioned cache paths on append - #136
Merged
Merged
Conversation
Every preset bump writes a new versioned @fetch dest, and append kept the old one: instructions and skills.paths stacked opencode-planify-german 0.2.1 through 0.4.0, so opencode loaded every version's rules and skill. An append entry under the cache dir now shares an identity with any entry that differs only in its X.Y.Z token, and supersedes it in place like a name@spec plugin does. Paths outside the cache dir keep plain append.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Bumping a preset with a versioned
@fetchdest stacked the old path next to the new one ininstructionsandskills.paths, so opencode loaded every planify version's rules and skill (0.2.1 through 0.4.0 seen in a real config).Append now treats a path under the cache dir that differs only in its
X.Y.Ztoken as the same entry and supersedes it in place, collapsing already-stacked copies on the next install. Paths outside the cache dir (prompted dirs, hand-added entries) stay plain append.removeis unchanged.Not covered: entries from before the
planify-*→opencode-planify-german-*rename have a different family name and must be removed by hand.