Repository navigation
fix(desktop): 固定 Core main c6cef0b 并修正工具窗口图标测试 - #2387
Merged
Merged
Conversation
12 of 15 tasks
xiaoyumuxi
marked this pull request as ready for review
November 24, 2026 09:54
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
main 上的桌面端测试现在是红的,0.8.16 也不能从这个状态发版:
build.run-type运行条目交给 Core 的runConfig.generate。这需要 Core #196,但PINNED_CORE_REVISION一直停在集成提交75e1480,它不包含 fix(windows): restore bundled JDTLS startup and Java navigation #196。所以TestGeneratedRunTypeSnapshotResolvesAsDeclaredKind会失败。TestPluginToolWindowUsesPackageIconAcrossThemes构造的App没有chrome,调用setItems时空指针 panic。CI 先跑不带 tag 的internal/core测试,那里已经失败,check.sh带set -e直接退出,所以这个 panic 一直没有在 CI 里出现。改动 / Changes
scripts/desktop/build-desktop-core.sh:PINNED_CORE_REVISION从集成提交75e1480改为 Core mainc6cef0b(合入 [Bug] Windows preview 0.3.0 编辑器持续卡顿:每键全文同步、Git blame 与 LSP 轮询 #187 增量市场更新的 merge commit)。集成提交带给桌面端的 Core [Bug] Windows preview 0.3.0 编辑器持续卡顿:每键全文同步、Git blame 与 LSP 轮询 #187、优化编辑器 Code Vision、Git Blame、Gutter 对齐与设置页背景 #189、[Feature] 想要支持直接终端在文件展示的界面打开的那种形式 #190、fix: 设置面板偶现滚轮滚动失效 #193、feat(macOS): support terminal tab docking #194 都已经在 main 上,这次另外带上 fix(windows): restore bundled JDTLS startup and Java navigation #196(buildSystems[].run[]可以生成已声明的runConfigurationTypes种类),以及 Windows 目录句柄的修复:Core 读取目录下内容时,不再共享删除权限。注释同步更新。desktop/internal/workbench/plugintools_test.go:测试改用App{chrome: newChromeState()}构造。只修测试,不改产品代码。docs/development/macos-plugin-api-plan.md:固定版本说明改为 Core mainc6cef0b。API-06、API-07 两行改为指向已合入的 Core [Feature] 想要支持直接终端在文件展示的界面打开的那种形式 #190 和 main 固定版本,不再指向集成提交。shared/platform-feature-matrix/features/plugin-host-editor-file-window-services.json:验证说明和备注里的固定版本改为 Core mainc6cef0b,状态不变。.agents/notes/implemented/architecture/2026-11-10-viva-plugin-host-services-and-backend-sessions.md:固定版本说明同步。不在本 PR 范围内 / Out of scope
pending。类型专属:fix
复现与根因
./scripts/desktop/check.sh。实际结果:internal/core的TestGeneratedRunTypeSnapshotResolvesAsDeclaredKind报runConfig.generate: Invalid run configuration generate request;单独运行-tags dev ./internal/workbench时,TestPluginToolWindowUsesPackageIconAcrossThemespanic 在catalog.go:356 setItems。期望结果:两个测试都通过。var app App没有初始化chrome。检查项
TestGeneratedRunTypeSnapshotResolvesAsDeclaredKind报Invalid run configuration generate request,TestPluginToolWindowUsesPackageIconAcrossThemespanic(nil*chromeState);改动后两个都通过.agents/notes/implemented/bug-fix/记录:没有改变行为约束范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/plugin-host-editor-file-window-services.json:只改固定版本说明,实现和验证状态不变./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh和./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD.artifacts/下生成的矩阵视图插件归属 / Plugin ownership
develop-lithe第三节“插件归属与宿主零依赖”的自查命令,结果为空dev.lithe.test.tool-iconshared/i18n/;插件构建信息没有写进docs/ci-builds.md、Agent Note 或 SkillrunConfigurationTypes: 0内向后兼容的补充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
scripts/desktop/build-desktop-core.sh的PINNED_CORE_REVISION已升到包含该契约的 Core commit(c6cef0b),桌面端测试经scripts/desktop/desktop-go.sh读到的就是这份契约sdk-e2e.mjs:本 PR 不改协议发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh无用代码与重构 / Dead code and refactoring
验证 / Verification
./scripts/desktop/build-desktop-core.sh(固定c6cef0b)./scripts/desktop/check.sh(gofmt、vet、不带 tag 的全部包、-tags dev的 buildinfo 和 DEV_TESTED 包)-tags dev的 buildinfo、settingswindow、pluginview、workbench,exit 0)./scripts/desktop/desktop-go.sh test -tags dev ./internal/workbench -run TestPluginToolWindowUsesPackageIconAcrossThemes./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD./scripts/agent-notes/verify-agent-notes.sh./scripts/desktop/verify/verify-runtime-bundle-immutability.sh未能执行的检查和原因: Windows 和 Linux 的桌面端测试交给 CI;本机没有跑 Windows 虚拟机。
提交前确认 / Final checks
main创建;目标分支:main.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图