Skip to content

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

Merge current main into file reference fix

vastsa5f9ec4675dac
diff --cc docs/spec/06-delivery/04-e2e-test-plan.md
index 81114a86f,5aadef689..9c28d5991
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@@ -16365,20 -16361,12 +16365,30 @@@ renderer's durable transcript reads. N
separate release qualification. No MCP, Codemode or virtual-router migration
is included. See `docs/project/pi-0991-adoption.md` for candidate evidence.
+#### E2E-262: Transcript path:line opens and scrolls the host file viewer
+
+- **Preconditions:** Isolated Electron/Chromium, an active workspace and session,
+ the bundled file-manager view available, and deterministic filesystem IPC
+ fixtures.
+- **Steps:** Render a real transcript `path:line:column` reference followed by
+ sentence punctuation; click its verified file chip and wait for the host file
+ viewer to load.
+- **Expected:** Despite the bundled file-manager view being available, the
+ positioned reference opens in the host's read-only file tab. The file request
+ retains its line and column, and the viewer scrolls the requested line into
+ the visible center area. The path and file contents remain the same as the
+ reference target.
+- **Specs:** `04-ux/08` §11.8; ADR 0262.
+- **Status:** `node scripts/e2e-file-ref-line-scroll.mjs` mounts production
+ `LinkifiedText` and `FilesTab` in isolated Electron with filesystem IPC
+ fixtures; no real project files or provider are used.
++
+ ### Imported-extension GUI executable discovery regression (#1173)
+
+ Start dependency installation with a GUI-like PATH that cannot resolve Node/npm
+ and a trusted fixture installation in `~/.local/bin`. Validation and both npm
+ stages must use that installation, preserve the application PATH, and avoid shell
+ startup probing. Explicit selections keep their bin directory first. Missing
+ installations still return `npm-unavailable` and retain native picker recovery.
+ The executable integration fixture uses real isolated child processes and checks
+ registry-only installation and credential isolation.
diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index d4e743f0d,ca7583835..1e1f6f12d
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@@ -9260,10 -9260,9 +9260,17 @@@ the latest destination. These assertion
- **里程碑:** M6+
- **状态:** 单测和源码契约覆盖(`update-cache.test.mjs`、`auto-update.test.mjs`);仍需 Windows 安装器/E2E 验证。
+#### E2E-262:聊天 path:line 引用打开文件并滚动到目标行
+
+- **前提:** 隔离 Electron/Chromium、活动工作区和会话、可用的随应用打包文件管理器视图,以及确定性的文件系统 IPC fixture。
+- **步骤:** 渲染真实聊天中的 `path:line:column` 引用并在末尾加句末标点;点击已验证的文件芯片,等待宿主文件查看器加载。
+- **预期:** 即使文件管理器视图可用,带位置的引用仍打开宿主只读文件选项卡。文件请求保留行列号,查看器滚动到视口中间的目标行;打开路径和文件内容与引用目标一致。
+- **规格:** `04-ux/08` §11.8;ADR 0262。
+- **状态:** `node scripts/e2e-file-ref-line-scroll.mjs` 在隔离 Electron 中挂载生产 `LinkifiedText` 与 `FilesTab`,并通过文件系统 IPC fixture 提供文件内容;不访问真实项目文件或模型服务。
++
+ ### 导入扩展时发现 GUI 环境下的可执行文件回归(#1173)
+
+ 使用无法解析 Node/npm 的 GUI 风格 `PATH` 启动依赖安装,并在 `~/.local/bin` 准备可信 fixture 安装。
+ 校验和 npm 两个安装阶段都必须使用该安装,同时保留应用自身的 `PATH`,且不探测 shell 启动文件。
+ 显式选择的 npm 仍优先使用其所在目录。缺少安装时仍返回 `npm-unavailable` 并保留原生选择器恢复路径。
+ 可执行集成 fixture 使用真实隔离子进程,并检查仅注册表安装和凭据隔离。