fix(skills): key GitHub zip cache by commit SHA and invalidate on delete - #1143
Open
3316891527 wants to merge 1 commit into
Open
fix(skills): key GitHub zip cache by commit SHA and invalidate on delete#11433316891527 wants to merge 1 commit into
3316891527 wants to merge 1 commit into
Conversation
Reuse ZIP files only when the resolved commit SHA still matches. Missing SHA lookups force a fresh download, and deleting a GitHub-imported skill removes its pooled zip so reinstall no longer restores a stale package.
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.
变更说明 / Description
背景与动机 / Context
从 GitHub 市场或仓库 URL 安装技能时,ZIP 缓存键之前是
owner/repo@branch。作者更新仓库但不改分支名时,本地仍会直接复用旧 ZIP。删除技能只清已安装目录,不清缓存池,因此删了再下仍会装回旧包。改动内容 / Changes
owner/repo@sha;owner/repo@main缓存;.operit/github_zip_keysidecar,删除技能时 invalidate 对应缓存。验证方式与结果 / Verification
SkillRepoZipPoolManagerTest:缓存命中、强制刷新、invalidate 后重下。关联 Issue / Related Issues
无
检查清单 / Checklist