English
Summary
This preview release introduces interactive HTML blocks inside Markdown results and a redesigned output pipeline for concurrent generation and large responses. It also improves backup integrity, adds import codes for selected cloud backups, preserves model selections and saved parameters, and refines image-editing and structured-input templates.
Highlights
- Interactive output in place: use Preview or Source to inspect results. Explicit HTML code blocks and supported HTML content render as isolated web pages alongside the surrounding Markdown. Multiple blocks can remain interactive at the same time.
- Bounded streaming and rendering: generation uses a dedicated output document, virtualized source views and background Markdown parsing. Oversized or expensive content falls back to source instead of building an unbounded rendered page.
- More reliable backups: validate data and image resources before restoration, protect existing images from eviction, and restore workspace snapshots only after preceding import steps succeed.
- Cloud backup import codes: transfer a selected WebDAV, S3-compatible or Cloudflare R2 snapshot using a code, link or QR code when its size permits.
Product Updates
Desktop
- Propagate cancellation from the interface through desktop IPC to model requests. Streaming completion now waits for asynchronous completion work.
- Use the shared Preview/Source output interface, inline HTML previews and backup import-code flow.
Web
- Render multiple HTML examples directly in Markdown results without a separate web-preview mode. Switching one result to Source leaves other results' previews intact.
- Keep in-progress responses in the source view; executable previews are created after generation completes.
- Allow HTML previews to request external data while retaining isolation from the application. Requests remain subject to browser CORS rules and the target service's authorization requirements.
Extension
- Include the shared output and backup improvements in the extension build.
- Known limitation: the extension's content security policy blocks inline scripts in HTML previews. Interactive generated pages are not supported in the extension in this beta; use the Web version for this feature.
- Use manifest version
2.13.0with display version2.13.0-beta.1for this manually installed preview package.
Core/Infra
- Separate streaming text from reactive workspace snapshots and publish final or interrupted results at explicit completion boundaries.
- Apply output-size, rendering and queue budgets, and cancel obsolete parsing work.
- Carry cancellation signals through OpenAI-compatible, Anthropic and Gemini streaming adapters.
Fixes
- Preview standalone HTML controls such as buttons, and keep output-toolbar actions within narrow mobile comparison columns.
- Reject invalid backup sections, conflicting image resources and insufficient image-storage capacity before publishing new references. Report partial restoration and rollback failures instead of presenting incomplete work as success.
- Preserve relevant settings and image references across export and import. Keep workspace restoration as the final import step.
- Preserve the selected model when refreshing lists, including empty responses and fallback lists.
- Preserve saved model parameters when provider definitions change, while validating edited values against applicable definitions.
- Clarify reference-image roles, edit scope and preservation requirements in image templates. Keep structured JSON fields, types, control values and placeholders intact.
- Update backup and desktop communication regression coverage for the new validation, storage and cancellation interfaces.
- Update Zod, body-parser, qs and the build tooling's Undici 6 dependency to patched versions for recently disclosed security advisories.
Breaking Changes / Upgrade Notes
- This is a prerelease for evaluation. Export a backup before trying it with important workspaces.
- The build-only deepmerge dependency still has an unpatched low-severity advisory; the identified path merges trusted Rollup configuration and is not part of the application runtime.
- Cloud backup import codes contain storage access credentials; they are not limited-permission public links. Share them only with trusted recipients. Google Drive import-code export is not supported in this release.
- HTML scripts execute inside isolated iframes. Isolation protects the application document and restricts permissions, but it does not impose a hard CPU or memory quota on arbitrary generated scripts. WebGPU and other browser features depend on the browser and device.
- Content that exceeds output or rendering budgets may stop generation or display as source. A stopped response remains distinguishable from a completed response.
- Preview Docker images use only the explicit
2.13.0-beta.1tag. Stablelatestimages and the latest stable GitHub release are not replaced. Desktop prerelease updates remain opt-in. - Extension preview packages share the numeric version of the eventual
2.13.0release; automatic upgrade ordering between previews and the stable package is not guaranteed.
Developer Notes
- The output pipeline uses bounded documents, CodeMirror source views, one shared Markdown worker and separate iframe previews. See Output pipeline architecture.
- Regression coverage includes concurrent producers, cancellation, restoration failures, source fallback, rendering budgets and tab lifecycle behavior. CPU throttling is a simulation, not a substitute for testing on low-performance hardware.
- The release workflow validates the tag and package versions, runs the test gates, builds desktop and extension packages, and publishes versioned multi-architecture Docker images before making the GitHub prerelease public.
Installation guide: English | 中文
Source release notes (EN)
中文
概括
本预览版支持在 Markdown 结果中直接交互 HTML 网页,并重构输出链路,以应对并发生成和长内容。同步增强备份完整性,新增指定云备份的导入码,修复模型选择与已保存参数的保留问题,完善图片编辑和结构化输入模板。
亮点
- 网页就地交互:通过“预览 / 原文”查看结果,显式 HTML 代码块及支持的 HTML 内容会在周围 Markdown 之间显示为独立网页,多个块可同时交互。
- 限制输出与渲染开销:生成过程使用独立输出文档、虚拟化原文视图和后台 Markdown 解析。内容过大或渲染过重时回退到原文显示,避免无限扩展渲染页面。
- 更可靠的备份恢复:恢复前校验数据和图片资源,保护已有图片不被自动淘汰,并在前置导入步骤成功后才恢复工作区快照。
- 云备份导入码:为选定的 WebDAV、S3 兼容或 Cloudflare R2 备份生成导入码、链接,并在长度允许时生成二维码。
产品更新
Desktop
- 将取消生成从界面经桌面通信传递到模型请求,流式完成会等待异步收尾操作。
- 接入统一的“预览 / 原文”结果界面、就地 HTML 预览与备份导入码流程。
Web
- Markdown 中的多个 HTML 示例直接显示为网页,无需切换到独立的网页预览模式。将某一列切到原文,不会重建其他列的预览。
- 生成期间显示原文,生成完成后才创建可执行的网页预览。
- 允许预览网页请求外部数据,同时保持与主应用隔离;请求仍受浏览器跨域规则和目标接口授权要求约束。
Extension
- 扩展构建包含共用的输出与备份改进。
- 已知限制:扩展的内容安全策略会拦截 HTML 预览中的内联脚本,本 beta 不支持在扩展内交互生成的网页,请使用 Web 版体验此功能。
- 本次手动安装的预览包使用数字版本
2.13.0,显示版本为2.13.0-beta.1。
Core/Infra
- 将逐片生成的文本与响应式工作区快照解耦,在明确的完成边界统一写入完整或中断结果。
- 对输出大小、渲染量和待处理队列设置预算,并取消过时的解析任务。
- 将取消信号贯穿 OpenAI 兼容、Anthropic 和 Gemini 流式适配器。
修复
- 支持单独输出的 HTML 按钮等控件进入网页预览,并修复手机窄列对比时工具栏按钮越界的问题。
- 在写入新的业务引用前,拒绝无效备份数据、图片资源冲突和图片存储容量不足的恢复操作;明确报告部分恢复与回滚失败,避免将未完成恢复显示为成功。
- 完善设置和图片引用的导出与恢复,工作区恢复保持为最终导入步骤。
- 刷新模型列表时保留当前选择,包括返回空列表和使用回退列表的情况。
- 模型参数定义更新时保留已保存的参数,并按适用定义校验用户修改的值。
- 图片模板更明确地区分参考图作用、编辑范围和需要保留的内容;保留结构化 JSON 的字段、类型、控制值和占位符。
- 更新备份与桌面通信回归测试,使其覆盖新的预校验、存储和取消接口。
- 将 Zod、body-parser、qs 及构建工具使用的 Undici 6 更新至修补版本,处理近期公布的依赖安全告警。
破坏性变更 / 升级说明
- 本版本为试用预览版。在重要工作区使用前,请先导出备份。
- 仅供构建使用的 deepmerge 仍有一项上游尚未修补的低危告警;已确认的调用路径用于合并受信任的 Rollup 配置,不进入应用运行时。
- 云备份导入码包含存储访问凭据,不是权限受限的公开分享链接,请只交给可信的接收者。本版本不支持为 Google Drive 导出备份导入码。
- HTML 脚本在独立 iframe 中运行。隔离可以保护主应用文档并限制权限,但不会为任意生成脚本设置 CPU 或内存硬配额。WebGPU 等能力还取决于浏览器和设备。
- 超出输出或渲染预算时,可能停止生成或改用原文显示;中断结果与正常完成结果会保持区分。
- 预览 Docker 镜像只使用明确的
2.13.0-beta.1标签,不替换稳定版latest镜像或 GitHub 最新正式版。桌面端预发布更新仍需用户主动选择。 - 扩展预览包与后续
2.13.0正式包使用相同数字版本,不保证预览之间或预览到正式包的自动升级顺序。
开发者说明
- 输出链路使用有容量限制的文档、CodeMirror 原文视图、共享 Markdown Worker 和独立 iframe 预览,设计见输出链路架构。
- 回归覆盖并发生成、取消、恢复失败、原文回退、渲染预算与标签页生命周期。CPU 降速属于模拟,不能替代低性能硬件上的实际测试。
- 发布流程校验标签和各端版本,执行测试门禁,构建桌面与扩展安装包,并在带版本号的多架构 Docker 镜像发布成功后,公开 GitHub 预发布版本。
安装文档: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 执行同类命令。