Repository navigation
fix(desktop): 补上 Windows 测试里 probeAll 漏传的参数 - #2159
Merged
Merged
Conversation
xiaoyumuxi
marked this pull request as ready for review
November 18, 2026 09:51
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.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
#2136 给
workspace.probeAll加了第四个参数projectCodeAllowed,但只在 Windows 上编译的scan_windows_test.go没有跟着改。从那以后 main 的 Desktop CI 在 Windows 上 vet 就失败:改动 / Changes
desktop/internal/toolchain/scan_windows_test.go:TestProbeAllCoalescesWindowsNativePathAliases调用probeAll时补上projectCodeAllowed参数,传false。这个测试的workspace没有设置root,isWorkspaceCode总是返回 false,所以传false不改变测试检查的内容(三种写法的同一路径只探测一次)。不在本 PR 范围内 / Out of scope
localshell的偶发失败(TestClosingAnIntegratedShell…),跟本次无关。类型专属:fix
复现与根因
probeAll的签名,带_windows后缀的测试文件在 macOS、Linux 上不参与编译,本地没发现。检查项
probeAll的调用方只有load.go两处和这个测试;feat(toolchain): 支持本机工作区信任门禁与项目内工具环境观测 (#2122) #2136 改了签名的其他函数(captureCatalog、prepareTool、resolveTool)没有 Windows 专属文件调用.agents/notes/implemented/bug-fix/记录:只是漏改一处调用范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:只改测试代码,没有用户可观察的变化。
插件归属 / Plugin ownership
N/A:没有涉及插件。
UI 验证 / UI evidence
N/A:没有界面变化。
统一日志系统 / Structured logging
N/A:没有改日志。
界面文案 / i18n
N/A:没有文案。
逻辑归属 / Logic placement
N/A:没有新增逻辑。
性能与内存 / Performance and memory
N/A:只改测试。
设置 / Settings
N/A:没有改设置。
插件契约 / Plugin contract
N/A:没有改契约。
发行包与资源 / Bundle and resources
N/A:没有新增资源。
无用代码与重构 / Dead code and refactoring
refactor标签的 Issue,没有在本 PR 顺手处理:没有发现验证 / Verification
scan.go中probeAll的签名与isWorkspaceCode在root为空时的行为未能执行的检查和原因: 本机无法交叉 vet(
desktop-go.sh不支持跨 OS,core包依赖 cgo),由 Windows CI 验证。提交前确认 / Final checks
main创建;目标分支:feat、fix、docs 为main,release 以发布流程要求为准.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图