Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
refactor(session-titles): reconcile decision ids with latest main
vastsaf8728a8c9cbf
diff --cc docs/adr/README.mdindex 10d8484dc,93805909d..31d6ff0ee--- a/docs/adr/README.md+++ b/docs/adr/README.md@@@ -364,4 -364,3 +364,4 @@@ Each ADR includes| 0320 | [Host-owned OAuth lifecycle for plugin providers](0320-plugin-oauth-provider-callbacks.md) | Accepted for implementation (D647; amends ADR 0259) || 0321 | [Pin an acceptable address for mixed direct DNS answers](0321-skill-market-direct-dns-pinning.md) | Accepted (D648; amends ADR 0272) || 0322 | [Plugin providers appear in Add Service](0322-plugin-providers-in-add-service.md) | Accepted for implementation (D650; amends ADR 0259) |- | 0323 | [Make Session Title Generation a Standalone Plugin](0323-plugin-owned-session-titles.md) | Accepted (D651; supersedes ADR 0186) |++| 0323 | [Make Session Title Generation a Standalone Plugin](0323-plugin-owned-session-titles.md) | Accepted (D652; supersedes ADR 0186) |diff --cc docs/spec/08-meta/decisions-log.mdindex 309b81dfc,f4dfe7702..b7460ec24--- a/docs/spec/08-meta/decisions-log.md+++ b/docs/spec/08-meta/decisions-log.md@@@ -44,7 -44,7 +44,8 @@@ This log freezes previously open questi| D648 | Skill Market pins an acceptable address for mixed direct DNS answers | **Amend ADR 0272: on a direct route, when DNS includes both rejected and acceptable answers, Skill Market selects and pins one acceptable address instead of letting Chromium choose among them. Third-party content prefers a public answer; the benchmark fake-IP is eligible only under the existing opt-in. ULA-only and other non-public-only answers remain blocked. Proxied and unreadable routes keep the existing policy. See ADR 0321 and E2E-SKILL-MARKET-NET-BOUNDARY.** | Dual-stack and transparent-proxy DNS can include an unused synthetic ULA answer beside an address the request can safely use; pinning prevents the rejected address from being dialed while avoiding the false refusal. || D649 | Cloud backup stays closed to users | **Amend D642 / D643: the Settings `sync` destination carries `developmentOnly: true` again, so a packaged build omits its rail row, page, and settings-search hits and falls back to General, while development builds keep it. Developer mode stays irrelevant to the destination and it still carries no Experimental badge. Sync behavior, protocol, host schema, and persisted data are unchanged; dropping the flag reopens it for packaged builds. See `04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.** | The encrypted WebDAV backup is not ready to be offered to packaged-build users yet, so it stays implemented but out of the way until it opens. || D650 | Plugin providers appear in Add Service | **Amend ADR 0259: optional `category` groups manifest-owned provider rows; optional localized `description` supplies one-sentence hover/focus copy. Loaded plugins with `provider.register` contribute unconfigured API-key providers with endpoints. Tiles display provider names only; the Host saves keys through the existing provider secret path. There is no per-plugin provider-count cap. An empty model list is allowed only for an API-key provider with a base URL; after explicit key save, Host discovery populates its cached model choices. Configured rows remain in the provider list and leave the chooser. OAuth / no-auth rows are omitted; no new permission, runtime plugin API, provider row, or credential migration is added. See ADR 0322, `07-plugins/02-plugin-manifest-schema.md`, and E2E-PLUGIN-provider-catalog-add-service.** | Users could not discover manifest-owned community providers in the normal Add Service flow, and each plugin needed to group its own sites without owning credential UI. |- | D651 | Make session title generation a standalone plugin | **Supersede ADR 0186: remove core prompt-derived fallback and built-in title completion; new sessions keep their localized default title until a user or plugin changes it. Add the high-risk `session.autoTitle` capability for bounded first-turn context and compare-and-set title updates, backed by schema v23 `sessions.title_source`; manual rename marks `manual`, plugin output marks `generated`. The standalone plugin configures its prompt template, model, and thinking level through its panel and uses `session:turnEnded`, `models.list`, and `agent.complete`. See ADR 0323, E2E-021a, and the plugin API/permission specs.** | Title generation is optional product policy with model and prompt settings, and the host needs a narrow durable boundary that makes manual titles win races. |+ | D651 | Transcript tool rows never auto-open | **Amend the leaf auto-open provision of the turn-process / thinking-display decisions and ADR `turn-process-and-thinking-display`: a tool-call, hosted-search or plan row keeps its payload collapsed in both display modes and only an explicit user action opens it, including the literal final item of the last activity group. Whole-process and ordinary-group defaults, failed/denied behavior, retained per-item choices, and the thinking row's own leaf default are unchanged. Renderer-only; no host protocol, persistence, permission or plugin contract change. See `04-ux/08-component-spec.md` §9.1/§9.2/§9.5/§9.6, `04-ux/09-interaction-patterns.md` §4.2, and E2E-040.** | A payload that opened itself under the newest call pulled attention away from the answer the user was waiting for and made one turn look different depending on how it ended; leaving every payload to the user keeps one predictable row. |++| D652 | Make session title generation a standalone plugin | **Supersede ADR 0186: remove core prompt-derived fallback and built-in title completion; new sessions keep their localized default title until a user or plugin changes it. Add the high-risk `session.autoTitle` capability for bounded first-turn context and compare-and-set title updates, backed by schema v23 `sessions.title_source`; manual rename marks `manual`, plugin output marks `generated`. The standalone plugin configures its prompt template, model, and thinking level through its panel and uses `session:turnEnded`, `models.list`, and `agent.complete`. See ADR 0323, E2E-021a, and the plugin API/permission specs.** | Title generation is optional product policy with model and prompt settings, and the host needs a narrow durable boundary that makes manual titles win races. |## B. Secondary implementation defaults@@@ -386,7 -386,7 +387,7 @@@ Gold source: local Codex electron captu| D605 | Brazilian Portuguese (pt-BR) shell locale | **Amend D314 / ADR 0160 / ADR 0183 / ADR 0185: ship a complete `pt-BR` shell catalog with native name Português (Brasil) and English name Portuguese (Brazil). `pt-BR`, `pt_BR`, and regional `pt-*` resolve to the Brazilian Portuguese catalog; persisted `AppSettings.language` accepts `pt-BR`; Electron packages `pt-BR` and `pt_BR` Chromium locales; and a matching Brazilian Portuguese changelog keeps release notes in the active locale. No host protocol, storage schema, or IPC version change. See ADR 0306.** | Brazilian Portuguese users need a distinct complete shell and release-note language matching the existing searchable locale registry and packaging conventions. || D350 | Focus-aware native task notifications | **Amend D117 / ADR 0107: `notification/showNative` carries `kind` as `task` or `interactive`. Omitted or unknown values default to `task`. Task banners are suppressed whenever the main window is visible and focused, including a focused background session. Interactive prompts are suppressed only for the exact visible focused session. Interactive prompts never create a durable task inbox row. Plugin notifications stay on their permission-gated path. No host protocol or storage schema change. See ADR 0187 and E2E-065 / E2E-065a.** | Task completions and interactive asks share one native channel but need different focus rules. The field is `kind`; a colliding `source` name is not part of the contract. || D358 | Show provider retry causes in the active-turn status | **Amend ADR 0175: `AgentActivity.retrying` may carry bounded, already-redacted error details. The compact retry row stays at rest; hover or keyboard focus reveals the localized summary, stable code/status, and provider message. Intermediate retries never become transcript error rows. See ADR 0196 and US-UI-60d.** | Users need the current retry cause without duplicating the final assistant error. |- | D359 | Summarize first-turn session titles with a main-owned one-shot *(superseded by D651)* | **Historical: the core once applied a first-prompt fallback, then ran `session/summarizeTitle` from Electron after `agent_end`. D651 removes both automatic title paths and moves optional generation to a standalone plugin.** | A truncated first prompt was a poor sidebar label, but title generation must not block the turn or expose credentials to the renderer. |-| D359 | Summarize first-turn session titles with a main-owned one-shot | **Keep the first-prompt fallback synchronous. After `agent_end`, the renderer calls allowlisted `session/summarizeTitle`. Electron resolves the session model and runs a thinking-disabled one-shot; a valid result persists through `session.rename`. Automatic replacement refuses a persisted `manualTitle` and any title that is neither a default nor the first-prompt fallback. No host schema change. See ADR 0186 and E2E-021a.** | A truncated first prompt is a poor sidebar label, but title generation must not block the turn or expose credentials to the renderer. |++| D359 | Summarize first-turn session titles with a main-owned one-shot *(superseded by D652)* | **Historical: the core once applied a first-prompt fallback, then ran `session/summarizeTitle` from Electron after `agent_end`. D652 removes both automatic title paths and moves optional generation to a standalone plugin.** | A truncated first prompt was a poor sidebar label, but title generation must not block the turn or expose credentials to the renderer. || D361 | Inline image transport uses a 10 MB app-side bound | **Amend ADR 0101 / D197: `MAX_INLINE_IMAGE_BYTES` is 10,000,000. Vision-capable models receive images at or below that decimal 10 MB bound as transient base64; larger images and non-vision models keep the `@path` fallback. Electron main and the sidecar share the constant so replay cannot take a different path. No protocol or schema change.** | MiniMax's OpenAI-compatible endpoint accepts one image up to 10 MB; a higher app bound produced provider rejections after the composer had already inlined the bytes. || D316 | Searchable theme picker | **Amend ADR 0160: Settings → General theme is a searchable picker row (same anchored-menu pattern as Language), not three preview cards. System / Light / Dark stay pinned at the top; plugin themes follow after a divider. `AppSettings.theme` and plugin-theme fallback are unchanged. See ADR 0161 and E2E-091.** | Plugin themes wrap a three-column card grid, and Language already solved the growing-list control. || D121 | Branded macOS development host | **`pnpm dev` on macOS launches electron-vite through a fingerprinted, ad-hoc-signed PI-Desktop copy of the installed Electron host bundle under `.cache/electron-dev/`. The generated bundle changes only development host metadata, executable name, bundle identifier, and the ICNS resource; it never mutates `node_modules`. Windows/Linux keep the stock development executable, while packaged lanes remain electron-builder-owned.** | AppKit ignores runtime app-name/menu overrides for the top-level application identity and takes the native menu name and About icon from the host bundle; a branded development host is required for parity with packaged PI-Desktop. |@@@ -4137,14 -4137,17 +4138,14 @@@ D193, and D194mapping, settings/pluginChanged apply path, and the darwin live-windowvibrancy guard. See `04-ux/08-component-spec.md` §1.7 and US-UI-74 / E2E-076.- ## 2026-09-08 — Session title summaries and focus-aware native task notifications (historical title decision superseded by D651; D350 remains active)-## 2026-09-08 — Session title summaries and focus-aware native task notifications (D359/D350)++## 2026-09-08 — Session title summaries and focus-aware native task notifications (historical title decision superseded by D652; D350 remains active)-- The initial prompt remains visible immediately as a normalized 48-character+- At the time, the initial prompt appeared immediately as a normalized 48-characterfallback. After the first turn, Electron resolves the session's effectiveprovider/model and runs the main-owned `session/summarizeTitle` one-shot withthinking disabled; the renderer persists a successful result through- `session.rename`. D651 / ADR 0323 removed this behavior and made title- `session.rename`.-- Renderer-local session metadata persists `manualTitle`. Automatic title- generation skips that marker and any persisted title that is neither a known- default nor the first-prompt fallback, so manual and already-summarized titles- survive renderer restart without a host schema change.++ `session.rename`. D652 / ADR 0323 removed this behavior and made title+ generation an optional standalone plugin.- Native task completion and interactive prompt alerts share an Electron IPCentry but have explicit `kind` values. Task banners are suppressed wheneverthe main window is visible and focused, including focused background sessions;@@@ -7547,16 -7550,18 +7548,31 @@@ must keep splitting are covered by `marrow leaves the chooser. OAuth and no-auth declarations do not appear.- See E2E-PLUGIN-provider-catalog-add-service and`07-plugins/02-plugin-manifest-schema.md` §5.4.- ## 2026-10-08 — Make session title generation a standalone plugin (D651)++## 2026-10-08 — Make session title generation a standalone plugin (D652)++- The core no longer derives a title from the first prompt or runs a title+ completion. New sessions remain at their localized default until the user or+ an installed plugin changes the title.+- The `session.autoTitle` permission exposes only bounded first-turn text for a+ default-titled session and a host compare-and-set title update. Schema v23+ tracks default, manual, and generated title ownership.+- The standalone plugin exposes its prompt template, model, and thinking level+ in a settings panel. It uses `session:turnEnded`, `models.list`, and+ `agent.complete`; manual rename wins any concurrent update.+- Covered by the host title-source and plugin API tests and E2E-021a. See+ ADR 0323 and the plugin API and permission specifications.++ ## 2026-10-08 — Transcript tool rows never auto-open (D651)++ - D651 amends the leaf auto-open provision introduced with the turn-process+ disclosure: in both Detailed and Compact a tool-call, hosted-search or plan row+ keeps its payload collapsed until the user opens it, wherever it sits in the+ activity group. Whole-process and ordinary-group defaults, failed and denied+ behavior, per-item retained choices, and the thinking row's own leaf default are+ unchanged.+ - Covered by `apps/desktop/test/interaction-performance.test.mjs`,+ `apps/desktop/test/thinking-ui.test.mjs`, and+ `apps/desktop/test/transcript-summary.test.mjs`; the unit test for the removed+ leaf-ownership helper is retired. See `04-ux/08-component-spec.md`+ §9.1/§9.2/§9.5, `04-ux/09-interaction-patterns.md` §4.2, ADR+ `turn-process-and-thinking-display`, and E2E-040.diff --cc docs/zh-CN/spec/08-meta/decisions-log.mdindex 3ce56f26a,f8f169fa4..642270eb2--- a/docs/zh-CN/spec/08-meta/decisions-log.md+++ b/docs/zh-CN/spec/08-meta/decisions-log.md@@@ -46,7 -45,8 +46,8 @@@| D648 | 混合直接 DNS 结果时固定使用可接受地址 | **修订 ADR 0272:在直连路由上,当 DNS 同时包含被拒绝与可接受的结果时,技能市场会选择并固定到一个可接受地址,而不会让 Chromium 在这些地址中自行选择。第三方内容优先使用公网地址;仅在现有策略允许时使用 `benchmark` 假 IP。仅返回 ULA 或其他非公网地址时仍会拦截。代理与无法读取的路由保持现有策略。见 ADR 0321 与 E2E-SKILL-MARKET-NET-BOUNDARY。** | 双栈与透明代理 DNS 可能在可安全使用的地址旁返回未使用的合成 ULA 地址;固定已通过校验的地址可避免连接到被拒绝结果并消除误拦截。 || D649 | 云备份暂不对外开放 | **修订 D642 / D643:设置中的 `sync` 目的地重新带上 `developmentOnly: true`,因此打包构建会省略其导轨行、页面和设置搜索命中并回落到常规,开发构建则保留该目的地。开发者模式与它无关,它仍不带实验性徽章。同步行为、协议、Host schema 与持久化数据均不变;移除该标记即可对打包构建重新开放。见 `04-ux/06-settings-ia.md` 与 E2E-CONFIG-SYNC-webdav-portable-configuration。** | 加密 WebDAV 备份尚未准备好提供给打包构建用户,因此先保持已实现但不出现在界面上,直到正式开放。 || D650 | 插件提供商出现在添加服务中 | **修订 ADR 0259:`contributes.providers[].category` 是可选分类;`description` 可提供一句简介。已加载且拥有现有 `provider.register` 权限的插件,可向 Host 渲染的添加服务选择器贡献带端点、尚未配置的 API Key 提供商。卡片只显示站名,悬停或键盘聚焦显示一句简介;分类可自定义。每个插件不设服务数量上限。空模型列表仅适用于带端点的 API Key 提供商,用户保存密钥后由 Host 发现并缓存模型。密钥仍通过现有提供商密钥路径保存,已配置的行从选择器隐藏。不提供 OAuth / 无认证行;不新增权限、运行时 API、提供商行或凭据迁移。见 ADR 0322、`07-plugins/02-plugin-manifest-schema.md` 与 E2E-PLUGIN-provider-catalog-add-service。** | 用户无法在常规添加服务流程中发现由清单声明的社区提供商;每个插件也需要自己分组站点,却不应拥有密钥界面。 |- | D651 | 会话标题生成改为独立插件 | **取代 ADR 0186:移除核心的提示词回退标题和内置标题补全;新会话在用户或插件修改前保留本地化默认标题。新增高风险 `session.autoTitle` 能力,用于读取有界首轮上下文并通过比较并设置写入标题,数据由架构 v23 的 `sessions.title_source` 支撑。独立插件可在面板配置提示词模板、模型和思考级别,并使用 `session:turnEnded`、`models.list` 和 `agent.complete`。见 ADR 0323、E2E-021a 及插件 API/权限规格。** | 标题生成是可选产品策略,且支持模型与提示词配置;宿主需要狭窄、持久的边界来保证手动标题在竞态中胜出。 |+ | D651 | 对话区工具调用行不再自动展开 | **修订 turn-process / thinking-display 决策中的叶子自动展开条款与 ADR `turn-process-and-thinking-display`:工具调用、托管搜索与计划卡片行在两种显示模式下都保持载荷收起,只有用户显式操作才会打开,包括最后一个活动组的字面最后一项。整体过程与普通活动组的默认展开、失败与被拒行为、逐项保留的用户选择,以及思考行自身的叶子默认都保持不变。仅渲染层改动;无 Host 协议、持久化、权限或插件契约变更。见 `04-ux/08-component-spec.md` §9.1/§9.2/§9.5/§9.6、`04-ux/09-interaction-patterns.md` §4.2 与 E2E-040。** | 自动展开最新调用的载荷会把阅读注意力从用户等待的回答上拽走,也让同一轮对话因结束方式不同而呈现不同样子;把载荷交给用户打开可保持行行为可预测。 |-| D450 | 签名的 macOS GitHub Release | **修订 D078 / ADR 0022:GitHub tag 发布使用身份 `Developer ID Application: XingYu Liu (DUV63RKYTW)` / 团队 `DUV63RKYTW`,通过 Actions 密钥(`CSC_LINK`、`CSC_KEY_PASSWORD`、`APPLE_ID`、`APPLE_APP_SPECIFIC_PASSWORD`、`APPLE_TEAM_ID`)对 macOS DMG/ZIP 做 Developer ID 签名、`notarytool` 公证、装订和 Gatekeeper 校验;缺少密钥则失败。无证书的本地未签名打包仍可用。`workflow_dispatch` 仅可把 `sign_macos: false` 用于未签名调试产物。打包的 macOS 走应用内 `electron-updater`(ZIP + 合并后的 `latest-mac.yml`);Linux deb/rpm 与 Windows 便携版 ZIP 仍为通知并打开发布页。禁止 afterPack/afterSign adhoc 签名(ADR 0278)。** | 正式 DMG 应无需 Gatekeeper 警告即可打开,已签名 macOS 安装可下载并重启到新 tag。见 ADR 0289、E2E-196c、E2E-067A。 |++| D652 | 会话标题生成改为独立插件 | **取代 ADR 0186:移除核心的提示词回退标题和内置标题补全;新会话在用户或插件修改前保留本地化默认标题。新增高风险 `session.autoTitle` 能力,用于读取有界首轮上下文并通过比较并设置写入标题,数据由架构 v23 的 `sessions.title_source` 支撑。独立插件可在面板配置提示词模板、模型和思考级别,并使用 `session:turnEnded`、`models.list` 和 `agent.complete`。见 ADR 0323、E2E-021a 及插件 API/权限规格。** | 标题生成是可选产品策略,且支持模型与提示词配置;宿主需要狭窄、持久的边界来保证手动标题在竞态中胜出。 |## B. 辅助实现默认值@@@ -386,7 -386,7 +387,7 @@@| D605 | 巴西葡萄牙语应用程序壳 | **修订 D314 / ADR 0160 / ADR 0183 / ADR 0185:提供完整 `pt-BR` 外壳目录,本地名 Português (Brasil),英文名 Portuguese (Brazil)。`pt-BR`、`pt_BR` 和 `pt-*` 解析到巴西葡萄牙语目录;持久化 `AppSettings.language` 接受 `pt-BR`;Electron 打包 `pt-BR` 与 `pt_BR` Chromium locale,并有匹配的巴西葡萄牙语发版日志。不改主机协议或存储 schema。见 ADR 0306。** | 巴西葡萄牙语用户需要独立完整外壳和发版说明语言。 || D350 | 按焦点区分本机通知投递 | **修订 D117 / ADR 0107:渲染器在 `notification/showNative` 终端结果调用中标记 `kind: "task"`,在 asktool、工具权限和 Plan 审批调用中标记 `kind: "interactive"`。缺失或未知值默认为 `task`。任务本机投递仍然仅在未聚焦时进行,包括聚焦的背景会话;交互投递仅在确切的询问会话已在聚焦窗口中可见时抑制,因此聚焦其他会话时可以收到横幅。交互询问从不创建持久任务收件箱行,插件本机通知仍使用独立的权限门控 API。不改变主机协议或存储架构版本。** | PR #84 扩展共享 handler 的门控时,使聚焦的背景终端完成也显示了本机横幅,同时实现了聚焦背景交互询问通知的目标。显式 `kind` 在同一个 Electron 边界隔离这两种用户可见策略。 || D358 | 在进行中重试行显示 provider 原因 | **修订 ADR 0175:`AgentActivity.retrying` 可携带有界、已脱敏的错误详情。紧凑重试行在静止时保持原样;悬停或键盘聚焦揭示本地化摘要、稳定码/状态和 provider 消息。中间重试不会变成转录错误行。见 ADR 0196 与 US-UI-60d。** | 用户需要当前重试原因,又不能复制最终助手错误。 |- | D359 | 用宿主一次性补全总结首轮会话标题(已被 D651 取代) | **历史决策:核心曾先应用首条提示回退标题,再在 `agent_end` 后调用 `session/summarizeTitle`。D651 移除了这两条自动标题路径,并把可选生成移到独立插件。** | 截断的首轮提示当侧栏标签很差,但标题生成不能挡住回合或把凭据暴露给渲染器。 |-| D359 | 用宿主一次性补全总结首轮会话标题 | **首轮提示回退保持同步。`agent_end` 后渲染器调用白名单 `session/summarizeTitle`。Electron 解析会话模型并跑关闭思考的一次性补全;有效结果经 `session.rename` 持久化。自动替换拒绝已持久的 `manualTitle`。见 ADR 0186 与 E2E-021a。** | 截断的首轮提示当侧栏标签很差,但标题生成不能挡住回合或把凭据暴露给渲染器。 |++| D359 | 用宿主一次性补全总结首轮会话标题(已被 D652 取代) | **历史决策:核心曾先应用首条提示回退标题,再在 `agent_end` 后调用 `session/summarizeTitle`。D652 移除了这两条自动标题路径,并把可选生成移到独立插件。** | 截断的首轮提示当侧栏标签很差,但标题生成不能挡住回合或把凭据暴露给渲染器。 || D361 | 内联图片传输使用 10 MB 应用侧上限 | **修订 ADR 0101 / D197:`MAX_INLINE_IMAGE_BYTES` 为 10,000,000。具备视觉能力的模型把不超过该十进制 10 MB 上限的图片作为瞬时 base64 接收;更大的图片和非视觉模型保留 `@path` 回退。Electron main 和 sidecar 共用该常量。不改协议或 schema。** | MiniMax 的 OpenAI 兼容端点单张图上限是 10 MB;更高的应用上限会在 Composer 已经内联字节后被提供商拒绝。 || D316 | 可搜索主题选择器 | **修订 ADR 0160:设置 → 常规的主题是可搜索选择行(与语言相同的锚定菜单),不再是三张预览卡。系统 / 浅色 / 深色钉在顶部;插件主题在分隔线之后。`AppSettings.theme` 与插件主题回退不变。见 ADR 0161 与 E2E-091。** | 插件主题会撑破三列卡片网格,而语言选择器已经解决了可增长列表的控件问题。 || D121 | 品牌macOS开发主机 | **macOS 上的 `pnpm dev` 通过 `.cache/electron-dev/` 下已安装的 Electron 主机包的指纹、临时签名的 PI-Desktop 副本启动 electro-vite。生成的捆绑包仅更改开发主机元数据、可执行文件名称、捆绑包标识符和 ICNS 资源;它永远不会改变 `node_modules`。 Windows/Linux 保持库存开发可执行,而打包通道仍归电子制造商所有。** | AppKit 会忽略顶级应用程序身份的运行时 app-name/menu 覆盖,并从主机包中获取本机菜单名称和“关于”图标;需要品牌开发主机才能与打包的 PI-Desktop 保持一致。 |@@@ -3501,18 -3501,12 +3502,18 @@@ D193 和 D194�pluginChanged 路径,以及 darwin 存活窗口守卫。见`04-ux/08-component-spec.md` §1.7 与 US-UI-74 / E2E-076。- ## 2026-09-08 —— 会话标题摘要与按焦点区分的原生任务通知(历史标题决策已被 D651 取代;D350 仍有效)-## 2026-09-08 —— 会话标题摘要与按焦点区分的原生任务通知(D349/D350)++## 2026-09-08 —— 会话标题摘要与按焦点区分的原生任务通知(历史标题决策已被 D652 取代;D350 仍有效)- - 当时的标题决策是:首条提示立即显示规范化回退标题,首轮完成后由 Electron 运行 `session/summarizeTitle` 并由渲染器保存结果。D651 / ADR 0323 已移除此行为,标题现由可选的独立插件拥有。-- 首条提示会立即显示规范化的 48 字符回退标题。首轮完成后,Electron 根据会话的有效提供商/模型运行关闭推理的 `session/summarizeTitle` 单次请求;渲染器通过 `session.rename` 持久化成功结果。-- 渲染器本地会话元数据持久化 `manualTitle`。自动标题会跳过该标记,也会跳过既不是已知默认标题、也不是首条提示回退标题的持久化标题,因此手动标题和已有摘要在重启后不会被覆盖。++- 当时的标题决策是:首条提示立即显示规范化回退标题,首轮完成后由 Electron 运行 `session/summarizeTitle` 并由渲染器保存结果。D652 / ADR 0323 已移除此行为,标题现由可选的独立插件拥有。- 原生任务完成通知和交互式提示共用 Electron IPC 入口,但使用明确的 `kind`。主窗口可见且聚焦时(包括聚焦在后台会话时)抑制任务横幅;交互式提示仍只抑制当前可见会话,因此聚焦的后台请求仍会提醒。持久任务插入仍遵循 D117,插件通知保持独立。-- 见 ADR 0186 / ADR 0187、`03-runtime/01-ipc-protocol.md`、`03-runtime/02-agent-runtime.md`、`04-ux/08-component-spec.md` 与 E2E-021a / E2E-065。+- 见 ADR 0186(标题决策已被 ADR 0323 取代)/ ADR 0187、`03-runtime/01-ipc-protocol.md`、`03-runtime/02-agent-runtime.md`、`04-ux/08-component-spec.md` 与 E2E-021a / E2E-065。+- ## 2026-10-08 —— 会话标题生成改为独立插件(D651)++## 2026-10-08 —— 会话标题生成改为独立插件(D652)++- 核心不再根据首条提示生成标题,也不再运行标题补全。新会话会保留本地化默认标题,直到用户或插件修改。+- 获得 `session.autoTitle` 权限的插件只能读取默认标题会话的有界首轮提示与回复,并且只能通过主机 CAS 更新标题。架构 v23 持久记录 `default`、`manual`、`generated` 来源;手动重命名会让插件竞态写入失败。+- 独立 Session Titles 插件从 `session:turnEnded` 触发,可配置提示词模板、模型和思考级别;模型调用使用 `agent.complete`。+- 见 ADR 0323、`03-runtime/02-agent-runtime.md`、`03-runtime/04-data-storage.md`、`07-plugins/03-plugin-api.md`、`07-plugins/13-plugin-permissions-matrix.md` 和 E2E-021a。## 2026-09-08 —— 父级终态错误中止残留委托(D352)