Skip to content

fix: 修复 Agent Preset 页面样式、优化插件恢复文案并缩短安装超时 - #319

Merged
yaojin3616 merged 3 commits into
mainfrom
fix/agent-preset-styles-and-plugin-recovery
Sep 5, 2026
Merged

fix: 修复 Agent Preset 页面样式、优化插件恢复文案并缩短安装超时#319
yaojin3616 merged 3 commits into
mainfrom
fix/agent-preset-styles-and-plugin-recovery

Conversation

@yaojin3616

Copy link
Copy Markdown
Contributor

概述

本次 PR 包含以下优化与修复:

1. 修复 Agent Preset 页面无样式问题

  • Harness 升级至 0.1.2-rc.1 后,上游 CSS module 类名哈希变更为 aThYWW_*
  • 本地补丁 patches/@deepseek-ai+dsh-client-ui-agent-preset+0.1.2-rc.1.patch 此前沿用了旧哈希 eWkxHa_*,导致页面元素缺少样式。现已对齐为 aThYWW_*
  • test/preset-transfer-patch.test.ts 中补充类名哈希对齐的回归测试。

2. 插件恢复界面与文案优化

  • 发现新兼容版本时,在提示文案中展示具体的目标版本号(如:该插件有新的兼容版本(v2.0.0) / A compatible update is available (v2.0.0))。
  • 简化恢复弹窗中的卸载按钮文案,由“仍要卸载此插件”优化为“卸载插件”(英文对齐为 Uninstall plugin)。
  • 同步更新相关单元测试。

3. 缩短世代安装超时时间

  • 将世代安装 pnpm 执行的默认硬超时时间(GENERATION_INSTALL_TIMEOUT_MS)由 12 分钟调整为 90 秒,避免异常挂起时长时间等待。

4. 依赖规范化

  • 规范化 package-lock.json 中的依赖排序与结构。

验证

  • npm run typecheck 通过,无类型错误。
  • npm test 84 个测试套件、703 个测试全部通过。

- Update CSS module hash mapping from eWkxHa_ to aThYWW_ to align with rc.1 upstream emitted styles
- Add regression test in test/preset-transfer-patch.test.ts verifying class name hash alignment
- 发现新版本时在恢复页面提示文案中包含目标版本号(如:该插件有新的兼容版本(v2.0.0))
- 简化恢复窗口中的卸载按钮文案为“卸载插件” / “Uninstall plugin”
- 将世代安装 pnpm 默认超时时间由 12 分钟调整为 90 秒,避免异常挂起时长时间等待
- 更新对应单元测试
@yaojin3616
yaojin3616 merged commit d2a9c82 into main Sep 5, 2026
6 checks passed
@yaojin3616
yaojin3616 deleted the fix/agent-preset-styles-and-plugin-recovery branch September 5, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant