Repository navigation
fix: SDK 缓存复用与禁止多开 - #13
Merged
Merged
Conversation
Host probe strings drifted across launches, so exact stamp matches failed and NuGet was hit again every start. Reuse any major-compatible cached DLL; only re-download on Retry or when the cache is too old. Named mutex stops a second process from sharing the wslc-desktop session. Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
timeroute
marked this pull request as ready for review
October 11, 2026 10:08
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
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.
问题
wslc version/wsl --version/unknown)导致active.json精确匹配失败,从而重复请求 NuGet、重复下载安装。wslc-desktop,互相干扰。改动
cache_compatible(缓存包 major ≥ host major)替代精确 host 字符串匹配;探测优先使用与启动门禁一致的wsl --version;host 漂移时只刷新 stamp,不重新下载。仅在缓存过旧或用户点「重试」时再拉取。Local\WSLcDesktop_SingleInstance;已有实例时弹窗提示并退出。测试
cargo test --bin wslc-desktop sdk_version(含新增cache_compatible用例)通过。