Repository navigation
v2.18.1-beta.1
Pre-releaseEnglish
Summary
This beta focuses on fixing Windows NSIS installer upgrade reliability—replacing fragile shell-based process checks with native Win32 checks so upgrades no longer falsely claim the app cannot be closed or break existing installations on rollback—while refreshing the built-in text and image model catalog and adding native MCP server instructions.
Highlights
- Reliable Windows NSIS Upgrades (#396): Replaced
powershell.exe/tasklistprocess probing in the Windows installer with native Win32 process enumeration and handle-verified path matching, eliminating false "PromptOptimizer cannot be closed" loops and silent/Supgrade failures. - Safer Rollback & Actionable Diagnostics: Upgrading from legacy
<= 2.18.0installs now stages a compatible uninstaller in a temporary directory instead of modifying the existing installation in place; if a process or locked file still blocks removal, the installer preserves the current installation and displays the blocking process name/PID/path or locked file path. - Refreshed Built-In Model Catalog (#395): Updated default image and text model presets across major providers, added automatic migration from retired defaults, and capped static provider presets to at most 3 curated models per provider.
Product Updates
Desktop
- Replace stock NSIS
powershell.exe/cmd.exe/tasklist/taskkillchecks with native Win32CreateToolhelp32Snapshot+OpenProcess+QueryFullProcessImageNameWchecks, excluding the running installer itself and scopingHKLMchecks to machine-wide installs. - Normalize quoted
InstallLocation/UninstallStringregistry entries in both installer and uninstaller, stage a temporary compatible uninstaller when upgrading legacy<= 2.18.0installs, and surface exact blocking process details or locked file paths if removal fails. - Add silent defaults (
/SD) to installer retry/abort dialogs so/Sunattended upgrades terminate cleanly without hanging.
Core/Infra
- Update Seedream image presets to
5.5,5.0 Pro, and5.0 Flash(removing retired 4.x / 5.0 Lite defaults and incompatible payload fields) and replace retired Cloudflare Qwen3 and Gemini 2.5 image entries (#395). - Refresh built-in text defaults across Gemini 4, DeepSeek Flash, GLM-5.4, Qwen4/3.8, Grok 4.7, MiniMax M4, and MiMo V2.6, migrate legacy default selections automatically, and cap static presets to at most 3 models per provider (#395).
- Add native MCP server instructions (
packages/mcp-server), align MCP package versioning with repository version sync, and update bilingual README/documentation with the 32-second product showcase video and refreshed MCP guides.
Fixes
- Fix Windows NSIS installers falsely reporting "PromptOptimizer cannot be closed" when the app is not running or exiting silently with code
2during/Supgrades (#396). - Prevent failed Windows upgrades from leaving a broken partial state or losing the existing installation when a file in
$INSTDIRis locked by another process (#396). - Fix retired Seedream / Cloudflare / Gemini default model entries causing out-of-the-box errors for new or migrated configurations (#395).
Breaking Changes / Upgrade Notes
- None. Existing Windows
2.16.x–2.18.0desktop installations can upgrade directly tov2.18.1-beta.1(both interactive and/Ssilent modes), and retired built-in model defaults are migrated automatically on load.
Developer Notes
Added automated Windows NSIS installer regression tests (packages/desktop/config/windows-nsis-installer.test.js) covering -WX compilation, install-mode scoping, locked-DLL rollback diagnostics, legacy 2.16.2 broken-uninstaller upgrade recovery, and stubborn-process termination; added a Windows release CI cross-version smoke test pinned to official v2.16.2 (SHA-256 verified) → candidate /S upgrade → reinstall → uninstall; and strengthened repository regression gates.
Installation guide: English | 中文
Source release notes (EN)
中文
概括
本测试版重点修复 Windows NSIS 安装包升级可靠性问题:使用原生 Win32 进程检测替换脆弱的外部脚本探测,修复应用未运行时仍误报「PromptOptimizer 无法关闭」或 /S 静默升级异常退出的故障,并在升级受阻时完整保留旧安装与明确指出占用源;同时更新内置文本/生图模型目录并为 MCP 服务端补充原生说明。
亮点
- 重做 Windows NSIS 升级检测与静默升级(#396):使用原生 Win32 进程枚举与句柄绑定路径校验替代
powershell.exe/tasklist探测,消除环境差异导致的「无法关闭」死循环与/S静默升级误失败。 - 升级失败保留原安装并给出明确诊断:从
<= 2.18.0旧版本升级时,在临时目录中调用兼容卸载器,避免提前破坏原有安装;若遇残留进程或文件被外部占用,会完整保留当前安装,并直接显示占用进程名/PID/路径或具体被锁文件路径。 - 内置模型目录焕新与旧默认迁移(#395):同步更新主流服务商的默认文本与生图模型预设,补充已下线默认模型的自动迁移,并将各服务商静态预设精简至不超过 3 个常用模型。
产品更新
Desktop
- 使用原生 Win32
CreateToolhelp32Snapshot+OpenProcess+QueryFullProcessImageNameW替换 NSIS 默认的powershell.exe/cmd.exe/tasklist/taskkill进程检测与关闭逻辑,排除安装器自身并按安装范围(当前用户 / 全部用户)隔离扫描。 - 在安装器与卸载器中统一清洗带引号的
InstallLocation/UninstallString注册表路径;检测到旧版本(<= 2.18.0)时在临时目录加载兼容卸载器,并在卸载失败时报告具体阻塞进程或被占用文件路径。 - 为安装器重试/中止弹窗补齐
/SD静默默认动作,确保/S无人值守升级在失败分支也能干净退出而不卡死。
Core/Infra
- 更新 Seedream 生图预设为
5.5、5.0 Pro、5.0 Flash(移除已下线的 4.x / 5.0 Lite 默认项及不兼容请求字段),替换已下线的 Cloudflare Qwen3 与 Gemini 2.5 生图预设(#395)。 - 刷新 Gemini 4、DeepSeek Flash、GLM-5.4、Qwen4/3.8、Grok 4.7、MiniMax M4、MiMo V2.6 等文本服务商默认预设,支持旧默认配置自动迁移,并将每家服务商静态预设上限收敛至 3 个(#395)。
- 为 MCP 服务端补充原生 server instructions(
packages/mcp-server),纳入仓库统一版本同步,并在中英文 README、文档站与快速开始页面补充 32 秒产品演示视频及新版 MCP 文档。
修复
- 修复 Windows NSIS 安装包在应用并未运行时持续误报「PromptOptimizer 无法关闭」,以及
/S静默升级异常返回退出码2的问题(#396)。 - 修复 Windows 升级过程中因目录内文件被占用导致卸载失败时,错误提示关闭应用或破坏原有安装的问题(#396)。
- 修复 Seedream / Cloudflare / Gemini 已下线内置默认模型导致开箱调用失败的问题(#395)。
破坏性变更 / 升级说明
- 无。Windows 桌面端可从
2.16.x–2.18.0直接交互或/S静默升级到v2.18.1-beta.1;已下线的内置默认模型配置会在加载时自动迁移。
开发者说明
新增 Windows NSIS 安装器自动化回归测试(packages/desktop/config/windows-nsis-installer.test.js),覆盖 -WX 严格编译、用户/系统安装范围隔离、锁 DLL 回滚与诊断输出、2.16.2 异常旧卸载器兼容升级及顽固进程终止;在 Windows 发版流水线新增固定官方 v2.16.2(SHA-256 校验)→ 候选包 /S 跨版本升级 → 覆盖重装 → 卸载烟测;并进一步强化仓库级回归门禁。
安装文档:English | 中文
仓库版本说明(中文)
macOS note: if macOS reports the app as damaged or cannot verify the developer, this is usually caused by the quarantine attribute on downloaded apps. See the installation guide, or remove it after installing with xattr -rd com.apple.quarantine /Applications/PromptOptimizer.app; for a downloaded DMG, you can run the same command on ~/Downloads/PromptOptimizer-*.dmg before installing.
macOS 备注:如果 macOS 提示“已损坏”或“无法验证开发者”,通常是下载文件的隔离属性导致。请参考安装文档;也可以在安装后执行 xattr -rd com.apple.quarantine /Applications/PromptOptimizer.app,或在安装前对 ~/Downloads/PromptOptimizer-*.dmg 执行同类命令。