Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

Merge origin/main into feat/transcript-tool-rows-collapsed

vastsa0051c05e327b
diff --cc docs/spec/08-meta/decisions-log.md
index a52666203,7cc38c90a..f4dfe7702
--- a/docs/spec/08-meta/decisions-log.md
+++ b/docs/spec/08-meta/decisions-log.md
@@@ -43,7 -43,7 +43,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 | 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. |
+ | 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 | 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. |
## B. Secondary implementation defaults
@@@ -7537,17 -7537,15 +7538,30 @@@ must keep splitting are covered by `mar
`pnpm test:e2e:settings-scroll` runs a development build. See
`04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.
- ## 2026-10-08 — Transcript tool rows never auto-open (D650)
+ ## 2026-10-08 — Plugin providers appear in Add Service (D650)
- - D650 amends the leaf auto-open provision introduced with the turn-process
+ - ADR 0322 adds provider category and optional short-description metadata to a
+ Host-rendered Add Service projection for unconfigured API-key providers from
+ loaded plugins with `provider.register`.
+ - Tiles show the provider name; its introduction is available on hover or
+ keyboard focus. There is no provider-count cap per plugin. Empty model lists
+ discover and cache endpoint models after the user saves a key.
+ - The key still uses the Host's existing provider secret path, and a configured
+ row 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 — 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.md
index 6d6a0cb2c,f21f40392..f8f169fa4
--- a/docs/zh-CN/spec/08-meta/decisions-log.md
+++ b/docs/zh-CN/spec/08-meta/decisions-log.md
@@@ -44,7 -44,7 +44,8 @@@
| D644 | 便携指令文件没有体积上限 | **移除 Host 对便携指令文件施加的 32 KiB 单文件上限。全局与项目指令内容只受其他域同样拥有的便携实体负载上限约束,并在上传修订与校验远端修订时检查。UTF-8 校验、symlink 拒绝、作用域选择、映射与审批规则均不变。见 `03-runtime/22-config-sync.md` §2。** | 一个 33 KiB 的项目 `AGENTS.md` 会让整次采集以 `CONFIG_SYNC_LIMIT_EXCEEDED: instruction file is too large` 失败,而设置页只能把它显示为泛化的备份体积错误。 |
| 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 | 对话区工具调用行不再自动展开 | **修订 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。** | 自动展开最新调用的载荷会把阅读注意力从用户等待的回答上拽走,也让同一轮对话因结束方式不同而呈现不同样子;把载荷交给用户打开可保持行行为可预测。 |
+ | 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 | 对话区工具调用行不再自动展开 | **修订 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。 |
## B. 辅助实现默认值
@@@ -5301,15 -5301,13 +5302,26 @@@ Markdown 源码,不是 `text/html` �
的云同步探针跑的是开发构建。见 `04-ux/06-settings-ia.md` 与
E2E-CONFIG-SYNC-webdav-portable-configuration。
- ## 2026-10-08 —— 对话区工具调用行不再自动展开(D650)
+ ## 2026-10-08 —— 插件提供商出现在添加服务中(D650)
- - D650 修订随 turn-process 披露引入的叶子自动展开条款:在详细与紧凑模式下,工具调用、
+ - ADR 0322 为插件提供商声明增加可选分类和一句简介,并让已加载且拥有
+ `provider.register` 权限的插件把未配置密钥的 API Key 提供商显示在 Host 渲染的
+ 添加服务选择器中。
+ - 卡片仅显示站名,悬停或键盘聚焦时显示简介;每个插件不设服务数量上限。空模型列表会在用户
+ 保存密钥后由 Host 发现并缓存模型。密钥仍通过现有提供商密钥路径保存,已配置的行从选择器隐藏。
+ OAuth 和无认证声明不会出现。
+ - 见 E2E-PLUGIN-provider-catalog-add-service 与
+ `07-plugins/02-plugin-manifest-schema.md` §5.4。
++
++## 2026-10-08 —— 对话区工具调用行不再自动展开(D651)
++
++- D651 修订随 turn-process 披露引入的叶子自动展开条款:在详细与紧凑模式下,工具调用、
+ 托管搜索与计划卡片行都保持载荷收起,直到用户打开它,无论它位于活动组的哪一项。整体
+ 过程与普通活动组的默认展开、失败与被拒行为、逐项保留的用户选择,以及思考行自身的
+ 叶子默认都不变。
+- 由 `apps/desktop/test/interaction-performance.test.mjs`、
+ `apps/desktop/test/thinking-ui.test.mjs` 与
+ `apps/desktop/test/transcript-summary.test.mjs` 覆盖;被移除的叶子归属辅助函数对应的
+ 单测已退役。见 `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` 与
+ E2E-040。