English
Summary
- This first mobile and PWA preview is for users who want to try the new workflows on their own devices. The stable release channel remains separate.
- Add mobile layouts across seven workspaces, organized around Optimize and Test, with prompt context and side-by-side results.
- Adapt model, history, template, variable, favorite and data management to phone-sized lists, details and forms.
- Add an installable production Web PWA with offline access to saved local work and save-before-update controls, backed by stronger workspace recovery and cross-window write protection.
Highlights
- View original and optimized prompts in one region. Configuration and toolbars adapt to available space, reducing nested tab switching and leaving more room for content.
- Inspect the prompt source while testing and compare results together, with improved long-text reading, image previews and keyboard-aware controls.
- Reuse existing business components and data services. Wide desktop layouts retain their established split views and interaction patterns.
Product Updates
Web
- Cover Basic System, Basic User, Context Multi-message, Context Variables, Text-to-image, Image-to-image and Multi-image workspaces.
- Reorganize mobile navigation and mode selection so specific modes are visible together and navigation happens after a concrete selection. Management views support list, detail, edit and return flows.
- Improve phone workflows for model forms, history restoration, template editing, variable imports, favorite categories and tags, and data import/export.
- Add installation guidance, standalone presentation, offline status and Save and update. Active generation or evaluation, unsaved management forms and save failures block updates; other open windows in the worker's scope must be closed before retrying.
Core/Infra
- Include seven workspace snapshot types and associated images in backup/restore, supporting address changes through the existing export/import flow.
- Strengthen conditional workspace writes, conditional cleanup of damaged snapshots, image-cleanup coordination and deferred mobile saves to prevent stale windows from overwriting newer content.
Fixes
- Avoid false Save and update conflicts when another window has only initialized default values, while retaining protection for actual concurrent edits.
- Keep updates blocked while evaluation requests are active, including after their panel closes.
- Retain deferred mobile saves after temporary busy states, and include the latest message input when saving immediately after editing.
- Fix keyboard-obscured selection menus, configuration collapsing during editing, and model settings being cleared when reselecting the current provider on mobile.
- Improve access to the end of long output, toolbar density, image comparison and scrolling inside mobile dialogs.
- Restore the previous prompt when an iteration fails.
- Correct Docker public-asset cache policy and Manifest MIME handling so eligible deployments can install the PWA, while continuing to protect configuration, APIs, authenticated responses and errors.
Breaking Changes / Upgrade Notes
- Existing access methods and desktop interactions remain available; no manual workspace data conversion is required. Adding a mobile evaluation interface is outside this release's scope.
- PWA installation requires a production Web build on trusted HTTPS or browser-trusted localhost. Plain LAN HTTP IP addresses remain usable online but cannot provide full PWA installation.
- Android Chrome offers browser installation controls; iOS Safari uses Share → Add to Home Screen. Device acceptance for this release covers Android; iOS device acceptance has not been completed.
- Offline support opens, reads and edits previously saved local work. Model inference, first-time loading and online configuration retrieval still require connectivity. This is not a native APK or an offline model runtime.
- Docker deployments using
ACCESS_PASSWORDretain authentication and online access, but do not support offline-shell installation. Do not expose protected entry documents to enable installation. - Browser data is isolated by origin. Changing the domain, protocol or port does not automatically migrate data. Export a resource-complete backup before moving to HTTPS, then import it at the new address.
- Finish active tasks, resolve unsaved forms and close other windows of the same application before choosing Save and update. Preserve local drafts when a real conflict is reported rather than forcing an overwrite.
- Development HMR, Electron and browser extensions do not register this Service Worker. Reverse proxies must preserve the public-asset/private-runtime cache boundary.
Developer Notes
- Preview releases build application artifacts and Docker images through one Release workflow using the same version and source commit. Preview images use explicit version tags and do not update stable latest aliases.
- Mobile presentation and style ownership are explicit. Shared workspace helpers handle split views, test bindings, source previews and batch operations; model-specific and business-specific decisions remain with each mode.
- PWA code lives in the Web package and calls a shared UI update-preparation interface rather than accessing internal workspace stores directly.
- Existing CI gates now cover Web/PWA behavior, conditional persistence, damaged-snapshot cleanup, deferred saves, mobile/desktop behavior across seven workspaces, and Docker HTTP policy.
- The local model-preview gateway is an opt-in development tool. Production builds do not include the test Magpie service or free-model credentials.
- See PWA technical guidance and Docker deployment guidance for installation and caching boundaries.
Installation guide: English | 中文
Source release notes (EN)
中文
概括
- 这是移动端与 PWA 的首个预览版本,供希望提前体验的用户验证真实设备上的使用流程;稳定版渠道保持独立。
- 新增七个工作区的移动端布局,以“优化 / 测试”两个区域组织操作,保留提示词上下文并支持结果并排对比。
- 为模型、历史、模板、变量、收藏和数据管理提供适合手机的列表、详情和编辑布局。
- Web 生产版本支持安装为 PWA、离线打开已保存的本地工作,以及保存后更新;加强工作区恢复和跨窗口写入保护。
亮点
- 原稿与优化稿在同一区域查看,配置和工具栏按可用空间调整,减少多层标签切换,把空间留给正文。
- 测试时可查看实际提示词来源并同时比较结果;长文本、图片预览和键盘弹出后的操作区域得到优化。
- 手机应用外壳复用原有业务组件和数据服务,桌面宽屏继续使用既有分栏与操作方式。
产品更新
Web
- 覆盖基础系统、基础用户、上下文多消息、上下文变量、文生图、图生图和多图生图七个工作区。
- 重新组织移动端功能菜单和模式选择:模式集中展示,选择具体模式后再进入;管理页支持列表、详情、编辑及返回工作区。
- 优化手机模型表单、历史恢复、模板编辑、变量导入、收藏分类与标签,以及数据导入导出操作。
- 新增安装提示、独立窗口外观、离线状态提示和“保存并更新”。生成、评估、未保存管理表单或保存失败时阻止更新;存在同作用域其他窗口时提示关闭后重试。
Core/Infra
- 备份与恢复纳入七类工作区快照及关联图片,支持通过现有导出导入流程迁移到新的访问地址。
- 加强工作区条件写入、损坏快照条件清理、图片清理协调和移动端延后保存,避免旧窗口覆盖新内容。
修复
- 修复另一个窗口仅初始化默认值时,“保存并更新”误报工作区写入冲突的问题;真正的并发编辑仍会受到保护。
- 修复评估面板关闭后,请求尚未结束却允许应用更新的问题。
- 修复移动端保存遇到临时忙碌后遗漏后续保存,以及快速编辑消息后保存未包含最后输入的问题。
- 修复手机键盘遮挡选择菜单、配置区编辑期间自动折叠、重复选择当前供应商导致模型配置被清空等问题。
- 优化正文末尾阅读、工具栏占位、图片对比和移动弹窗的滚动布局。
- 修复继续优化失败后原有提示词未正确恢复的问题。
- 修复 Docker 公共构建资源的缓存策略和 Manifest 类型,使符合安装条件的部署可完成 PWA 安装;继续保护配置、API、鉴权响应及错误响应。
破坏性变更 / 升级说明
- 现有访问方式和桌面操作继续可用,无需手动转换工作区数据。移动端评估界面不在本轮新增范围内。
- PWA 适用于 Web 生产构建,需要可信 HTTPS 或浏览器认可的 localhost。普通局域网 HTTP IP 可在线使用,但不满足完整 PWA 安装条件。
- Android Chrome 可通过浏览器安装入口添加应用;iOS Safari 可通过“分享 → 添加到主屏幕”操作。本轮真机验收覆盖 Android,未完成 iOS 真机验收。
- 离线能力用于打开、阅读和编辑已经保存的本地工作;模型推理、首次加载和在线配置获取仍需要联网。PWA 不是原生 APK,也不提供离线模型。
- Docker 设置
ACCESS_PASSWORD时仍要求登录,支持在线使用,不支持离线外壳安装。无需为安装而放开受保护入口。 - 浏览器按来源隔离数据:域名、协议或端口变化不会自动迁移旧数据。切换到新 HTTPS 地址前,通过数据管理导出含资源的备份,再在新地址导入。
- 更新提示出现时先结束运行中的任务、处理未保存表单,并关闭同一应用的其他窗口,再选择“保存并更新”;真实冲突时先保留本地草稿,不要强行覆盖。
- 开发热更新、Electron 和浏览器扩展不注册此 Service Worker。反向代理需保留公共静态资源与私有运行数据的缓存边界。
开发者说明
- 预览版统一通过 Release 流程构建各端与 Docker 镜像,绑定同一版本和源码提交;预览镜像只提供完整版本标签,不更新稳定版 latest。
- 移动布局和样式按呈现职责组织;七个工作区共享分栏、测试组绑定、来源预览、批量测试等编排能力,具体模型与业务规则继续由各模式负责。
- PWA 位于 Web 包,通过应用更新准备接口调用共享 UI,不直接操纵内部工作区 Store。
- 回归覆盖接入现有 CI 入口,包括 Web/PWA、条件存储写入、损坏快照清理、延后保存、七工作区手机/桌面浏览器行为,以及 Docker HTTP 策略。
- 本地预览模型网关为显式启用的开发工具,正式版本不内置测试用 Magpie 服务或免费模型凭据。
- 安装与缓存边界详见 PWA 技术说明 和 Docker 部署说明。
安装文档: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 执行同类命令。