Skip to content

fix(desktop): 固定 Core main c6cef0b 并修正工具窗口图标测试 - #2387

Merged
xiaoyumuxi merged 1 commit into
mainfrom
chore/pin-core-main-c6cef0b
Nov 24, 2026
Merged

xiaoyumuxi merged 1 commit into
mainfrom
chore/pin-core-main-c6cef0b

Conversation

@xiaoyumuxi

@xiaoyumuxi xiaoyumuxi commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

关联 Issue / Linked issue

PR 类型 / Type

  • feat:新功能或用户可见的改进
  • fix:缺陷修复
  • docs:文档、Agent Note、Skill 等规则文件
  • release:稳定版发布准备

改动说明 / What changes

背景 / Why

main 上的桌面端测试现在是红的,0.8.16 也不能从这个状态发版:

  1. feat(run): support model-generated declared runConfigurationTypes entries #2382 让桌面端把模型解码出来的 build.run-type 运行条目交给 Core 的 runConfig.generate。这需要 Core #196,但 PINNED_CORE_REVISION 一直停在集成提交 75e1480,它不包含 fix(windows): restore bundled JDTLS startup and Java navigation #196。所以 TestGeneratedRunTypeSnapshotResolvesAsDeclaredKind 会失败。
  2. fix(plugin-ui): 修正网页浮层、后端错误传递与工具窗口图标 #2383 新增的 TestPluginToolWindowUsesPackageIconAcrossThemes 构造的 App 没有 chrome,调用 setItems 时空指针 panic。CI 先跑不带 tag 的 internal/core 测试,那里已经失败,check.sh 带 set -e 直接退出,所以这个 panic 一直没有在 CI 里出现。

改动 / Changes

不在本 PR 范围内 / Out of scope

  • 0.8.16 的版本号和发布说明在单独的 release PR。
  • Windows 原生验收 API-06–08,状态维持 pending。

类型专属:fix

复现与根因

检查项

  • 已先写回归测试,确认它在修复前失败、修复后通过;测试路径与修复前的失败输出:两个测试本身就是回归测试。旧固定版本下 TestGeneratedRunTypeSnapshotResolvesAsDeclaredKind 报 Invalid run configuration generate request,TestPluginToolWindowUsesPackageIconAcrossThemes panic(nil *chromeState);改动后两个都通过
  • [N/A] 无法自动化时,已写明手动复现与验证步骤:已自动化
  • 已搜索被修改函数、类型、契约字段的全部调用方(含另一平台、插件、SDK、脚本和按字符串分发的调用):只改固定版本和一个测试的构造方式
  • 已检查另一平台是否有同类缺陷(有则本 PR 一并修复,或已提交 Issue):桌面端 Go 代码两端共用,固定版本同时作用于两端
  • 只改了修复所需的代码,没有夹带重构;修复过程中发现的其他问题已提交 Issue:无新问题
  • [N/A] 修复改变了行为约束或容易复发,已在 .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/ 下生成的矩阵视图
  • [N/A] 没有更新矩阵的,理由:已更新

插件归属 / Plugin ownership

  • 已在仓库根目录运行 develop-lithe 第三节“插件归属与宿主零依赖”的自查命令,结果为空
  • 新增或修改的测试只使用测试内联的合成插件、Core 契约 fixture 或插件市场索引快照:图标测试用的是合成插件 dev.lithe.test.tool-icon
  • 没有为具体插件提供的能力新建或更新宿主功能矩阵条目
  • 插件文案没有写进 shared/i18n/;插件构建信息没有写进 docs/ci-builds.md、Agent Note 或 Skill
  • [N/A] 修改了通用扩展点、可能影响已发布插件的:没有改扩展点;Core fix(windows): restore bundled JDTLS startup and Java navigation #196 是 runConfigurationTypes: 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

  • 契约改动已在 Rust Core PR 里随执行它的代码一起提交,同一个 Core PR 已登记插件协议更新记录:Core #196、#187、#190 均已合入 Core main
  • scripts/desktop/build-desktop-core.sh 的 PINNED_CORE_REVISION 已升到包含该契约的 Core commit(c6cef0b),桌面端测试经 scripts/desktop/desktop-go.sh 读到的就是这份契约
  • [N/A] 修改插件后端协议的,已运行 sdk-e2e.mjs:本 PR 不改协议
  • [N/A] 新增或修改宿主方法、宿主通知的,已逐个列出:本 PR 不新增宿主方法
原计划编号 方法 用途
— 无 本 PR 只升固定版本

发行包与资源 / Bundle and resources

  • 运行时不向已安装的 app bundle 或 Windows 安装目录写入;已运行 ./scripts/desktop/verify/verify-runtime-bundle-immutability.sh
  • [N/A] 新增或修改宿主自身的下载、解压、生成或缓存资源的:没有新增资源

无用代码与重构 / Dead code and refactoring

  • 本次改动导致变成无用的代码已在本 PR 删除:没有
  • [N/A] 本次之前就存在的无用代码或可重构之处:没有发现

验证 / Verification

命令或操作 平台 结果
./scripts/desktop/build-desktop-core.sh(固定 c6cef0b) macOS arm64 通过
./scripts/desktop/check.sh(gofmt、vet、不带 tag 的全部包、-tags dev 的 buildinfo 和 DEV_TESTED 包) macOS arm64 通过(不带 tag 的 76 个包 + -tags dev 的 buildinfo、settingswindow、pluginview、workbench,exit 0)
./scripts/desktop/desktop-go.sh test -tags dev ./internal/workbench -run TestPluginToolWindowUsesPackageIconAcrossThemes macOS arm64 通过
插件归属自查命令 macOS 结果为空
./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh macOS 通过(222 项)
./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD macOS 通过
./scripts/agent-notes/verify-agent-notes.sh macOS 通过(205 篇)
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh macOS 通过

未能执行的检查和原因: Windows 和 Linux 的桌面端测试交给 CI;本机没有跑 Windows 虚拟机。

提交前确认 / Final checks

  • 分支从最新的 main 创建;目标分支:main
  • 以 Draft 提交,本地验证通过后才标记 ready
  • 没有无关改动,没有提交 .build/、target/、dist/、.artifacts/ 等产物,没有凭据、个人路径和未脱敏的日志或截图
  • 本次构建、测试或预览启动的 Lithe 应用和子进程已全部关闭,没有进程残留

- PINNED_CORE_REVISION 从集成提交 75e1480 换成 Core main c6cef0b,带上 #196,
  修复 #2382 的 TestGeneratedRunTypeSnapshotResolvesAsDeclaredKind
- TestPluginToolWindowUsesPackageIconAcrossThemes 构造 App 时初始化 chrome,
  修复 #2383 引入的空指针 panic
- API 计划、功能矩阵和 Agent Note 的固定版本说明同步
@ghfind-review ghfind-review Bot added the review: high ghfind author score; see https://ghfind.com label Nov 24, 2026
@xiaoyumuxi xiaoyumuxi mentioned this pull request Nov 24, 2026
12 of 15 tasks
@xiaoyumuxi
xiaoyumuxi marked this pull request as ready for review November 24, 2026 09:54
@xiaoyumuxi
xiaoyumuxi merged commit 4f6501f into main Nov 24, 2026
7 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: high ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant