Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix: 同步最新主线并保留独立修复规格
geng yuede4ddf03ee7c
diff --cc docs/spec/04-ux/08-component-spec.mdindex 7691bf74d,f6fe13bea..9f3fb44ee--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@@ -1,11 -1,9 +1,15 @@@# 08. Component Spec+Screenshot-only Composer paste (image bytes without a native disk path) skips+native directory discovery and uses the existing bounded attachment writer.+Native files and folder-only or mixed file/folder selections keep the directory+metadata path. This removes the system-process wait from screenshot paste+(Refs #2086, #1366), without copying directory trees.++ File Manager Git deadlines settle the command at the deadline even when child+ output pipes remain open. A failed snapshot omits Git badges and does not block+ directory listings or file previews indefinitely (Refs #1731).+### Copied directory referencesNative folder paste adds compact cards in a wrapping row above the editablediff --cc docs/spec/06-delivery/04-e2e-test-plan.mdindex da2b3e9de,ce55354e9..d002bc761--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@@ -1,15 -1,13 +1,23 @@@# 04. E2E Test Plan+### E2E-COMPOSER-screenshot-without-directory-scan++Paste a native folder, then a synthetic screenshot through real Composer,+preload IPC and the bounded scratch writer in `e2e-composer-paste.mjs`.+Run with `--screenshot-only` to verify the folder and screenshot route while+excluding unrelated MP4 preview. Screenshot metadata never enters native+directory discovery; scratch bytes are verified exactly in Main.+`composer-directory-paste.test.mjs` verifies byte preservation and existing+folder/mixed-selection behavior. No system clipboard contents are changed.++ ### E2E-FILE-MANAGER-git-deadline++ `file-manager-git-timeout.test.mjs` drives actual bundled `fm.list` and `fm.read`+ against real fixture files with a controlled child-process boundary. Advance+ the Git deadline while the child never closes: entries and preview complete+ without Git metadata. Existing Electron directory-location and mutation+ journeys cover successful reads, saves and directory browsing.+## E2E-SCHEDULED-independent-loading-and-route-return- **Preconditions:** Synthetic tasks; controllable task, latest-run, history anddiff --cc docs/zh-CN/spec/04-ux/08-component-spec.mdindex 9c130a38c,6bfcaf1fd..4a2cc7d90--- a/docs/zh-CN/spec/04-ux/08-component-spec.md+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md@@@ -1,9 -1,8 +1,12 @@@# 08. 组件规格+输入框粘贴只有截图字节且没有原生磁盘路径时,跳过系统目录探测,直接使用+现有有界附件写入流程。磁盘文件、纯目录及混合文件/目录选择保留目录元数据+路径,去除截图粘贴时的系统进程等待(Refs #2086、#1366),不复制目录树。++ 文件管理器的 Git 截止时间直接结束命令等待,即使子进程输出管道仍未关闭。+ 快照失败时省略 Git 标记,目录列表和文件预览不会因此无限等待(Refs #1731)。+> **翻译说明:** 本页是与 [英文源规格](/spec/04-ux/08-component-spec) 一一对应的机器辅助翻译。代码、协议字段和标识符保持原文;如翻译与英文源事实有歧义,以英文版本为准。diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex 2c228edf3,3928df0f6..b1a252764--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md@@@ -1,13 -1,12 +1,20 @@@# 04. E2E 测试 Plan+### E2E-COMPOSER-screenshot-without-directory-scan++`e2e-composer-paste.mjs` 使用真实 Composer、preload IPC 和有界 scratch 写入,+先粘贴原生目录,再粘贴合成截图。使用 `--screenshot-only` 验证这条路径,+跳过无关的 MP4 预览;截图不进入原生目录探测,Main 精确校验 scratch 字节。+`composer-directory-paste.test.mjs` 验证字节不变及原有目录/混合选择流程。+不修改系统剪贴板内容。++ ### E2E-FILE-MANAGER-git-deadline++ `file-manager-git-timeout.test.mjs` 对真实测试文件调用内置 `fm.list` 和+ `fm.read`,仅控制子进程边界。子进程从不关闭时推进 Git 截止时间,目录及+ 预览仍完成,Git 元数据不可用。原有 Electron 目录定位和文件修改旅程验证+ 正常读取、保存和目录浏览。+## E2E-SCHEDULED-independent-loading-and-route-return- **Preconditions:** Synthetic tasks; controllable task, latest-run, history and