Skip to content

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

chore: 将 MCP 修复分支同步至最新主线

geng yuec1dbdeb7cf1f
diff --cc docs/spec/06-delivery/04-e2e-test-plan.md
index 4f0dfb7fa,12473a3dc..30848d4c1
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@@ -20342,6 -20367,35 +20367,39 @@@ Scenario: E2E-REVIEW-ROUNDS (local desk
failures separately from protocol success.
- Exercise a late stop with an already reaped child before the supervisor drains the pipes. Verify the original exit outcome, final output and stable elapsed time across reads. Stall capability discovery or the first Host observation to exercise the overall wait deadline. The Electron transcript fixture renders a pending Bash stop and a mixed job list.
+#### E2E-ISSUE-1953
+
+MCP All uses the selected project for create/import/install, falling back to Global only without a project. Explicit filters retain ownership and an opened editor pins its project. Verify create and market installation across all/project/global and missing-project cases with `mcp-market-owner-user-path.test.mjs`.
++
+ #### E2E-ISSUE-1789
+
+ Image-model marking explains chat/default-menu exclusion and distinguishes generation from image input. Collapsed model rows retain an image-model badge. Verify marking, help, collapsing, unmarking and restored chat eligibility through `image-model-disclosure-user-path.test.mjs`.
+
+ #### E2E-ISSUE-2162
+
+ Closing the connected Browser tab clears its connection. Subsequent session-only tools use that session's selected replacement page. Explicit closed targets fail; navigation never revives an invisible old tab. Verify close/reopen/snapshot/fill/click/navigate and final closure with `browser-background-session.test.mjs` and `BROWSER_CLOSE_CONNECTION_ONLY=1 node scripts/e2e-browser-background.mjs`.
+
+ #### E2E-ISSUE-2163
+
+ Bounded tail pages include compactions appended after the last message. Middle pages still read only the active checkpoint and records inside their offsets. Verify append-message/append-compaction, tail reopening and Host restart with `scripts/e2e-compaction-tail.mjs` and `layout_tail_window` tests.
+
+ #### E2E-ISSUE-2164
+
+ While a checkpoint estimate supplies context occupancy, use its recorded provider/model capacity, or the current exact session binding for legacy checkpoints. Keep historical request usage unchanged. Unknown capacity is marked approximate. Verify 20,619 / 1,000,000 = 2%, unknown routes, legacy records and usage after a newer request with `compaction-context-usage.test.mjs`.
+
+ #### E2E-ISSUE-2173: Redundant delegation job selectors
+
+ - Entry: build shared/agent-runtime/host-runtime and Host, then run
+ `PI_DESKTOP_HOST_BIN=<candidate-host> node scripts/e2e-task-job-selectors.mjs`.
+ - Preconditions: isolated Host data/workspace and a deterministic localhost
+ provider; production parent and delegate loops, with no external model account.
+ - Steps: start a delegate; wait with both its job reference and matching
+ delegationIds; re-read with empty delegationIds and single-job mode/minCompleted;
+ start another delegate, hold its provider response, stop it with both selectors,
+ and confirm its stopped state through TaskWait.
+ - Expected: reports remain readable, redundant selectors do not cause errors,
+ single-job mode/minCompleted are ignored, and cancellation settles the target.
+ Unit tests also reject conflicting/malformed IDs and mixed Bash selectors.
+ - Specs: `03-runtime/02-agent-runtime.md`, Session job controls.
+ - Acceptance: wait, report re-read and running-delegate cancellation complete
+ through the real tool loop. Milestone: maintenance. Status: automated.
diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index f0c4346c7,918e091b6..ff068fa17
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@@ -10391,6 -10405,18 +10405,22 @@@ Electron 一侧——工具自动签发
- Host 测试覆盖先完成后等待、重复读取、Unicode 截断、归属查找、幂等停止与停止请求待确认。Windows 子孙进程清理测试仍须执行,原生失败单独报告。
- 在子进程已退出、监管任务尚未排空管道时请求停止,检查原退出结果、最终输出和重复读取的耗时。延迟能力探测或第一次 Host 观察,检查等待总时限。Electron 会话记录用例渲染尚待确认的 Bash 停止请求和混合作业列表。
+#### E2E-ISSUE-1953
+
+MCP All 在创建、导入、安装时使用所选项目,无项目才回退全局;显式筛选保留归属,编辑器固定项目。验证不同筛选、创建、市场安装和缺少项目拒绝写入。
++
+ #### E2E-ISSUE-1789
+
+ 生图标记说明聊天和默认菜单移除效果,并区分图片生成与输入;折叠行保留生图标记。通过真实组件验证标记、帮助、折叠、取消及恢复聊天资格。
+
+ #### E2E-ISSUE-2162
+
+ 关闭已连接浏览器标签时清除连接;会话级工具使用同一会话选中的替代页,显式已关闭目标仍失败,导航不复活不可见旧标签。验证关闭、重开、snapshot、fill、click、navigate 和最终关闭。
+
+ #### E2E-ISSUE-2163
+
+ 末尾分页包含最后一条消息之后追加的检查点,中间页仍只读取生效及页内记录。验证消息、压缩追加后读取及 Host 重启,最新检查点与上下文估算保留,历史用量不变。
+
+ #### E2E-ISSUE-2164
+
+ 压缩估算作为占用时使用检查点模型容量,旧检查点使用当前会话完整绑定;历史请求用量不变,未知容量标记估算。验证 20,619 / 1,000,000 为 2%、未知路由、旧记录及新请求恢复。