English
Summary
This release adds local-service discovery and guided model setup, unifies workspace controls and model selection, and reorganizes data management and cloud backups. It also adds prompt-source hover previews and fixes configuration fields that could not be cleared reliably, category-parent clearing, and delayed hover previews covering the full-prompt dialog.
Highlights
- Discover local model services: the text model manager identifies supported reachable services and offers a shortcut to the existing connection editor, with provider-specific setup guidance.
- Clearer workspace controls: consistent icons, compact source and model selectors, and responsive toolbars make configuration and output actions easier to find.
- Inspect the prompt being tested: hover to read a source preview on desktop, or open its full content directly. Source labels and model selection stay tied to the corresponding workspace.
- Organized data management: review device storage, export or restore a local file, and manage cloud backups through distinct sections with clearer connection and loading states.
Product Updates
Desktop
- Add controlled local-service probes through the desktop bridge and guided model connection setup.
- Preserve explicit field clears across desktop IPC when saving model configurations.
- Apply the shared workspace, source-preview and data-management improvements, including saved cloud-backup connection credentials and read-only connection/list operations.
Web
- Discover supported reachable Ollama, Magpie, CLIProxyAPI, LiteLLM and llama.cpp services. Offer Chrome AI integration where the browser exposes the required capability.
- Prefill connection drafts and provide service-specific connection help. Model refresh, credentials, model selection and saving remain explicit user actions.
- Deduplicate already configured local addresses and keep model choices isolated between workspaces.
- Present device data, local files and cloud backups in a shared responsive data-management interface.
Extension
- Use the updated workspace controls, model selectors and prompt-source previews in the extension interface.
- Keep multiple inline HTML previews independently interactive across preview/source switching and page lifecycle changes.
- Refine narrow-screen actions and the shared data-management and backup controls.
Core/Infra
- Add local-service identification, model-catalog normalization and the Magpie adapter.
- Preserve explicit configuration clears through IPC serialization and model-update handling.
- Expand regression coverage for local discovery, connection drafts, workspace model isolation, backup workflows and source-preview interactions.
Fixes
- Save a cleared category parent correctly so a category can be moved back to the root.
- Preserve explicitly cleared model configuration fields, including API keys, through the desktop service bridge.
- Ignore stale hover callbacks after a source menu closes, Escape cancels a pending preview, or the full-prompt dialog opens. The hover card no longer reopens over the dialog's controls.
- Restore clear prompt-source labels, keep workspace model selections independent, and fit compact action labels within available space.
- Persist cloud-backup credentials, retain existing lists after a refresh error, and ignore responses superseded by newer connection settings or authorization.
- Keep cloud connection checks and directory lookup read-only; creation and restoration remain separate actions.
Breaking Changes / Upgrade Notes
- Export a backup of important application data before upgrading; the existing backup format and remote directories are retained.
- Local discovery does not read or create API keys, automatically import models, or make inference requests. Authenticated services still require the user's own client key. Browser access remains subject to CORS and local-network access rules.
- LM Studio and CC Switch do not have automatic discovery shortcuts in this release. Compatible services can still be configured manually through the model editor.
- The extension uses version
2.14.0without a prereleaseversion_name. Install the ZIP manually; this release does not submit an update to browser extension stores. - Docker images use the
2.14.0tag and are promoted tolatestafter both registries pass verification. This release is available through the stable desktop update channel.
Developer Notes
- Discovery offers connection drafts through the existing model editor and persistence flow, rather than automatically registering services or importing catalogs.
- Backup tests cover credential persistence, read-only connections, configuration drafts, import-code ownership and obsolete-response handling. Simulated authorization is not a real-account OAuth acceptance test.
- Source-preview regressions include seven workspace modes and rapid source selection followed by opening the full prompt. Packaged-extension tests retain real pointer activation and state assertions, with the embedding frame scrolled into view and the nested button focused first.
- The release workflow validates the tag, source identity, application versions and bilingual notes, runs the full test gate, and packages desktop and extension artifacts before publishing matching multi-architecture images to both registries.
Installation guide: English | 中文
Source release notes (EN)
中文
概括
本版本新增本机服务发现与模型连接引导,统一工作区控件和模型选择,整理数据管理及云备份流程。同步增加提示词来源悬浮预览,修复配置字段无法可靠清空、分类父级清空,以及延迟悬浮预览遮挡全文弹窗的问题。
亮点
- 发现本机模型服务:文本模型管理器识别支持且可访问的服务,通过快捷入口打开现有连接编辑器,并提供对应服务的配置引导。
- 更清晰的工作区控件:统一图标、紧凑的来源和模型选择器,以及响应式工具栏,让配置和输出操作更容易找到。
- 查看实际测试的提示词:桌面布局支持悬浮阅读来源内容,也可直接打开全文。来源标签和模型选择与对应工作区保持一致。
- 整理数据管理:通过独立区域查看本机占用、导出或恢复本地文件、管理云端备份,并明确展示连接与加载状态。
产品更新
Desktop
- 通过桌面桥接执行受限制的本机服务探测,并提供模型连接引导。
- 保存模型配置时,通过桌面通信正确传递显式清空的字段。
- 接入统一的工作区、来源预览和数据管理调整,包括云备份连接凭据持久化,以及只读连接检查和列表读取。
Web
- 发现支持且可访问的 Ollama、Magpie、CLIProxyAPI、LiteLLM 和 llama.cpp 服务;浏览器提供所需能力时,可使用 Chrome AI 入口。
- 预填连接草稿并提供服务配置说明。模型刷新、凭据输入、模型选择和保存仍由用户明确执行。
- 对已经配置的本机地址去重,并保持各工作区的模型选择相互独立。
- 在统一的响应式数据管理界面中展示本机数据、本地文件和云端备份。
Extension
- 在扩展界面中使用更新后的工作区控件、模型选择器和提示词来源预览。
- 保持多个就地 HTML 预览在预览/原文切换及页面生命周期变化中的独立交互状态。
- 完善窄屏操作,以及共用的数据管理和备份控件。
Core/Infra
- 增加本机服务识别、模型目录转换和 Magpie 适配器。
- 在 IPC 序列化和模型更新处理中保留显式清空的配置值。
- 补充本机发现、连接草稿、工作区模型隔离、备份流程和来源预览交互的回归覆盖。
修复
- 正确保存清空后的分类父级,支持将分类移回顶级。
- 通过桌面服务桥接保留明确清空的模型配置字段,包括 API Key。
- 在来源菜单关闭、Escape 取消待显示预览或打开提示词全文后,忽略过期的悬浮回调,避免预览再次弹出并遮挡弹窗控件。
- 恢复清晰的提示词来源标签,保持工作区模型选择独立,并让紧凑操作标签适应可用空间。
- 持久保存云备份凭据,刷新出错时保留已有列表,并忽略被新连接配置或授权替代的旧响应。
- 云端连接检查和目录查找保持只读,创建备份和恢复数据仍是独立操作。
破坏性变更 / 升级说明
- 升级前建议导出重要应用数据。既有备份格式和远程目录继续沿用。
- 本机发现不会读取或创建 API Key、自动导入模型或发送推理请求。需要授权的服务仍须使用用户自己的客户端密钥,浏览器访问也受跨域和本地网络访问规则约束。
- 本版本未提供 LM Studio 和 CC Switch 的自动发现入口,兼容服务仍可通过模型编辑器手动配置。
- 扩展使用版本
2.14.0,不再设置预发布的version_name,请手动安装 ZIP;本次发布不会自动向浏览器扩展商店提交更新。 - Docker 镜像使用
2.14.0标签,两个仓库校验一致后更新latest。本版本进入桌面稳定更新渠道。
开发者说明
- 服务发现通过现有模型编辑器和持久化流程提供连接草稿,不会自动注册服务或导入模型目录。
- 备份测试覆盖凭据持久化、只读连接、配置草稿、导入码归属和过期响应处理;模拟授权不等于真实账号的 OAuth 授权验收。
- 来源预览回归覆盖七种工作区模式,以及快速选择来源后打开全文的场景。扩展安装包测试继续使用真实鼠标操作和状态断言,先滚动外层预览到可见位置,再聚焦内部按钮。
- 发布流程校验标签、源码身份、各端版本和中英文说明,执行完整测试门禁,在桌面与扩展产物完成后向两个仓库发布一致的多架构镜像。
安装文档: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 执行同类命令。