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(settings): resolve PR 813 integration conflicts
yuxino031934788c5f
diff --cc docs/spec/06-delivery/04-e2e-test-plan.mdindex aa327ef9d,633af017f..c91ac7784--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@@ -14348,20 -14378,18 +14378,36 @@@ the latest destination. These assertionscripts/e2e-scheduled-workspace.mjs`, using production Electron dispatch andreal Rust/stdio/SQLite. Only external inference is replaced with an observer.+ ### E2E-SESSION-temporary-attachment-fork: Preview and independent branch inputs++ - **Steps**: In a task without a project, paste text above the long-paste+ threshold, send it, and click its transcript attachment. Return from the+ preview, create a branch, and open the same attachment in the child. Delete+ the source task and reopen the child attachment; branch the child again.+ - **Expected**: Every preview shows the original saved bytes. Each branch path+ belongs to that branch's scratch input directory. No project is required, and+ no access to another task's scratch directory is granted. A bounded fork+ excludes later-only and unreferenced inputs.+ - **Automation**: `scripts/e2e-composer-paste.mjs` covers long-text save, real+ Electron file read, temporary-task preview, and back navigation. Host tests+ `fork_preserves_referenced_pasted_files_independently` and `sessions::fork_files`+ cover ownership, deletion, repeated/bounded forks, retained checkpoint paths,+ expired inputs, rollback, and symlink rejection.+++### E2E-SETTINGS-destination-scroll-reset++- Open Settings → AI and scroll midway down. Select Shortcuts: its title and+ first settings appear at the top. Scroll and return to AI: it starts at top.+- Re-select the active destination and update settings without navigating:+ the content keeps its scroll position.+- Repeat for built-in → plugin, plugin → plugin, and plugin → the previously+ selected built-in destination. Re-selecting a plugin keeps its position.+- Follow a global search setting anchor into AI from another destination and+ within AI: the target row is visible, and consuming the anchor keeps that+ position.+- Run in light and dark themes.+- Automated coverage: `pnpm test:e2e:settings-scroll` mounts the production+ SettingsPage, store, translations, and built CSS in isolated Electron. Only+ preload data is stubbed; search navigation uses SearchDialog's public store+ entry points. This covers renderer interaction, not host persistence or the+ full global-search dialog.diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex 10f869d31,75ac12b71..67ec58bd1--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md@@@ -8514,17 -8538,15 +8538,30 @@@ the latest destination. These assertion宿主 RPC 路径由 `scripts/e2e-smoke.mjs` 覆盖提供商的创建与列举,但没有套件驱动手工编辑的 `config_json`。+ ### E2E-SESSION-temporary-attachment-fork:临时任务预览与独立分支附件++ - **步骤**:在没有项目的任务中粘贴超过长文本阈值的内容并发送,点击对话中的附件。+ 返回后创建分支并打开同一附件;删除原任务,再打开分支附件,并继续创建分支。+ - **预期**:每次预览均显示原始文件内容;各分支引用自身的 scratch 输入目录,+ 不需要打开项目,也不授予跨任务读取权限。按消息截断的分支不复制后续消息独有+ 或未引用的输入文件。+ - **自动化**:`scripts/e2e-composer-paste.mjs` 覆盖长文本保存、真实 Electron+ 文件读取、临时任务预览及返回。主机测试+ `fork_preserves_referenced_pasted_files_independently` 和 `sessions::fork_files`+ 覆盖附件归属、删除、重复与截断分支、保留的压缩检查点引用、过期输入、失败回滚+ 及符号链接拒绝。+++### E2E-SETTINGS-destination-scroll-reset++- 打开设置 → AI,滚动到中间,再选择快捷键:标题和首项从顶部显示。滚动后+ 返回 AI,该页也从顶部显示。+- 再次选择当前分类,或不离开当前页更新设置,保留内容区滚动位置。+- 覆盖内置分类 → 插件、插件 → 插件、插件 → 先前选择的内置分类;再次+ 选择当前插件分类时保留位置。+- 从其他分类及 AI 当前页通过全局搜索设置锚点进入 AI,目标项可见,消费+ 锚点后保持定位。+- 在明暗两种主题下运行。+- 自动化覆盖:`pnpm test:e2e:settings-scroll` 在隔离 Electron 中挂载真实+ SettingsPage、store、翻译和构建后的 CSS。仅 preload 数据使用 fixture;+ 搜索导航调用 SearchDialog 使用的公开 store 入口。该测试覆盖渲染层交互,+ 不覆盖 host 持久化或完整全局搜索弹窗。