English
Summary
- Hardens prompt optimization so image, context, and user templates preserve placeholders, JSON structure, and explicit constraints more reliably.
- Adds safer custom-model configuration support, including JSON/string custom parameter values, request headers, and model metadata preservation.
- Polishes workspace model switching, test-source cues, Prompt Garden inspiration/import surfaces, and the E2E replay gate used by CI.
Highlights
- Custom model setups are easier to review and less lossy: headers, custom parameter value types, and provider metadata now survive configuration and request paths more consistently.
- Image prompt optimization is stricter about preserving variables, JSON fields, ratios, forbidden terms, and other hard constraints instead of smoothing them away.
- CI replay coverage is stable again for the SiliconFlow text-to-image generation gate.
Product Updates
Desktop
- Desktop inherits the shared model configuration, prompt preservation, workspace switching, and release-note rendering updates.
Web
- Added quick-switch controls for text and image models across workspaces.
- Added subtle source cues for test panels and variants so generated outputs are easier to relate back to their source input.
- Added Prompt Garden inspiration and import polish, including localized suggestions and clearer import behavior.
- Improved favorite editor and share-export handling, including PNG metadata storage through compressed
iTXt.
Extension
- The extension package version is synchronized to v2.11.2 and inherits the shared UI improvements.
Core/Infra
- Added custom request header handling for OpenAI-compatible model configuration.
- Added model metadata resolution helpers so provider/model identity is preserved more consistently.
- Added parameter utilities and tests for preserving JSON custom parameter values while keeping string parameters literal.
- Updated release-note rendering so macOS quarantine guidance stays in the lower-prominence release footer.
Fixes
- Fixed prompt template hardening so double-curly variables and structured JSON fields are preserved across image, context, user, and iterate templates.
- Fixed Python-style literal normalization so JSON strings are not accidentally rewritten.
- Fixed optimization session persistence after chain commits so refresh keeps the expected session state.
- Fixed the image text-to-image VCR fixture and test model selection so the CI E2E replay gate no longer depends on environment-specific default models.
Breaking Changes / Upgrade Notes
- None.
Developer Notes
- The release range is
v2.11.1..HEAD. - Version sync updated the root package, desktop package, and extension manifest to
2.11.2. - Verification covered
pnpm test:gate,E2E_VCR_MODE=replay pnpm test:gate:e2e, and the GitHub Actionstestworkflow run for the E2E fixture repair.
Installation guide: English | 中文
Source release notes (EN)
中文
概括
- 强化提示词优化链路,让图像、上下文和用户模板更可靠地保留占位符、JSON 结构和显式约束。
- 补充更安全的自定义模型配置能力,包括 JSON/string 自定义参数值、请求头以及模型元数据保留。
- 优化工作区模型切换、测试来源提示、Prompt Garden 灵感/导入体验,并修复 CI 使用的 E2E replay 门禁。
亮点
- 自定义模型配置更容易审查,也更不容易丢信息:请求头、自定义参数值类型和 provider/model 元数据会更稳定地贯穿配置和请求路径。
- 图像提示词优化会更严格地保留变量、JSON 字段、比例、禁用项和其他硬约束,而不是为了润色把它们抹掉。
- SiliconFlow 文生图 gate 的 CI replay 覆盖已经恢复稳定。
产品更新
Desktop
- 桌面端继承共享的模型配置、提示词保留、工作区模型切换和发布说明渲染更新。
Web
- 在多个工作区新增文本模型和图像模型快速切换控件。
- 为测试面板和测试变体增加轻量来源提示,便于把生成结果对应回原始输入。
- 优化 Prompt Garden 灵感和导入体验,包括本地化建议和更清晰的导入行为。
- 改进收藏编辑和分享导出处理,PNG 元数据改用压缩
iTXt存储。
Extension
- 扩展包版本同步到 v2.11.2,并继承共享 UI 改进。
Core/Infra
- 为 OpenAI-compatible 模型配置新增自定义请求头处理。
- 新增模型元数据解析辅助逻辑,使 provider/model 身份在更多路径中保持一致。
- 新增参数工具和测试,用于保留 JSON 自定义参数值,同时让字符串参数保持字面量。
- 更新发布说明渲染,让 macOS 隔离属性提示保持在较低视觉权重的页脚位置。
修复
- 修复提示词模板强化逻辑,让双花括号变量和结构化 JSON 字段在图像、上下文、用户和迭代模板中得到保留。
- 修复 Python 风格字面量规范化,避免误改 JSON 字符串内部内容。
- 修复链路提交后的优化会话持久化,刷新后能保留预期的会话状态。
- 修复 image text-to-image 的 VCR fixture 和测试模型选择,避免 CI E2E replay gate 受环境默认模型影响。
破坏性变更 / 升级说明
- 无。
开发者说明
- 本次发布范围是
v2.11.1..HEAD。 - 版本同步已将根包、桌面包和扩展 manifest 更新到
2.11.2。 - 验证覆盖
pnpm test:gate、E2E_VCR_MODE=replay pnpm test:gate:e2e,以及修复 E2E fixture 后的 GitHub Actionstest工作流。
安装文档: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 执行同类命令。