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 yue2b1335a0f3a4
diff --cc docs/spec/04-ux/08-component-spec.mdindex eade81bb0,9f3fb44ee..015db945b--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@@ -1,9 -1,11 +1,15 @@@# 08. Component Spec+Live delegation reconstruction crosses system notices as well as steering+messages. An ordinary user prompt remains the run boundary. A running Task+behind a system notice must not become aborted on navigation (Refs #1990).++ 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 childoutput pipes remain open. A failed snapshot omits Git badges and does not blockdirectory listings or file previews indefinitely (Refs #1731).diff --cc docs/spec/06-delivery/04-e2e-test-plan.mdindex e1415d7bf,96f4de759..172981cb8--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@@ -1,14 -1,23 +1,32 @@@# 04. E2E Test Plan+### E2E-SUBAGENT-system-notice-reconstruction++Reconstruct a transcript with a running Task followed by a system notice.+The production entry builder, live-delegation selector and outcome resolver+keep the Task running. End the session or add a new ordinary prompt and verify+that historical Tasks are no longer live. Coverage:+`live-delegation-system-row.test.mjs`; `turn-process.test.mjs` checks the+matching turn boundary and `turn-process-header.test.mjs` the rendered labels.++ ### E2E-STEERING-recovery-reply-order++ Feed consumed steering between an earlier reply and the next recovery response.+ The earlier reservation settles and the next reply gets a new ID. Cover+ provider, overflow, silent and progress recovery in `runtime.test.ts`.+ `e2e-transcript-render.mjs` verifies production event projection and the+ existing one-bubble overflow recovery when no steering is consumed.++ ### 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`diff --cc docs/zh-CN/spec/04-ux/08-component-spec.mdindex 6c1c7c0a4,4a2cc7d90..0ff5cd877--- a/docs/zh-CN/spec/04-ux/08-component-spec.md+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md@@@ -1,8 -1,9 +1,12 @@@# 08. 组件规格+运行中子代理状态重建跨过系统通知及 steering 消息,普通用户提示仍作为回合边界。+系统通知之前仍在运行的 Task 不会因导航而显示已停止(Refs #1990)。++ 输入框粘贴只有截图字节且没有原生磁盘路径时,跳过系统目录探测,直接使用+ 现有有界附件写入流程。磁盘文件、纯目录及混合文件/目录选择保留目录元数据+ 路径,去除截图粘贴时的系统进程等待(Refs #2086、#1366),不复制目录树。+文件管理器的 Git 截止时间直接结束命令等待,即使子进程输出管道仍未关闭。快照失败时省略 Git 标记,目录列表和文件预览不会因此无限等待(Refs #1731)。diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex be6401264,0d7192c06..7f4b9c02e--- 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,12 -1,20 +1,27 @@@# 04. E2E 测试 Plan+### E2E-SUBAGENT-system-notice-reconstruction++重建运行中的 Task 后接系统通知的会话,生产条目构建、运行状态选择及结果+解析保留 Task 运行状态。结束会话或追加普通用户提示后,历史 Task 不再存活。+覆盖:`live-delegation-system-row.test.mjs`;`turn-process.test.mjs` 验证对应+回合边界,`turn-process-header.test.mjs` 验证渲染状态标签。++ ### E2E-STEERING-recovery-reply-order++ 在早先回复和下一次恢复回复之间送入已消费的 steering,旧片段结束,下一条+ 回复使用新 ID。`runtime.test.ts` 覆盖提供商、溢出、空回复及进度恢复。+ `e2e-transcript-render.mjs` 验证生产事件投影,以及无 steering 时原有的+ 单气泡溢出恢复行为。++ ### 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` 和