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 yueed49d7591b6e
diff --cc docs/spec/04-ux/08-component-spec.mdindex 559cd5e8b,1c42236c6..8916fddc2--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@@ -1,9 -1,9 +1,13 @@@# 08. Component Spec+Workspace file index Git queries settle at their deadline or output limit,+even when inherited child pipes do not close. Composer file search and the+Files index then use the existing bounded filesystem fallback (Refs #1731).++ A full transcript read may fill its session cache only when that cache has not+ changed during the request. New streaming or edit snapshots retain ownership;+ the caller still receives the requested history for its own action validation.+A rejected session Stop request retains the last known running state. Atransport failure is not confirmation of process settlement; successful Stopand authoritative terminal events continue to clear the running indicator.diff --cc docs/spec/06-delivery/04-e2e-test-plan.mdindex cb45f6929,f7347948c..4c6669f3c--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@@ -1,12 -1,18 +1,25 @@@# 04. E2E Test Plan+### E2E-FILE-INDEX-git-deadline++Drive `getWorkspaceFileIndex` and `searchWorkspaceFiles` against real fixture+files. Hold Git's close event beyond its deadline: both calls return the bounded+filesystem listing. Coverage: `fs-index-git-deadline.test.mjs`. Existing index+tests cover Git ignore semantics, Unicode chunk boundaries and deep search.++ ### E2E-EXTENSION-thinking-request-state++ Set high thinking through the production extension bridge, send a prompt and+ capture the provider stream options. The actual Agent loop sends high, matching+ the extension getter. `runtime.test.ts` mocks only the provider stream.++ ### E2E-TRANSCRIPT-full-read-cache-race++ Hold a full-history read, publish a newer streaming snapshot, then resolve the+ old read. The caller receives history while the session cache keeps the newer+ snapshot. Coverage: `full-transcript-refresh-race.test.mjs` plus existing+ session-runtime update regressions. No provider execution is required.+### E2E-SESSION-rejected-stop-stateReject a remote Stop at the API boundary: the production session slice keepsdiff --cc docs/zh-CN/spec/04-ux/08-component-spec.mdindex 52e8ad698,01a4366a4..4ce2dac19--- 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,8 +1,11 @@@# 08. 组件规格+工作区文件索引的 Git 查询在截止时间或输出上限直接结束等待,即使继承的+子进程管道未关闭。输入框文件搜索及 Files 索引使用现有有界目录回退(Refs #1731)。++ 全量会话读取仅在请求期间缓存未改变时写入该会话缓存。新的流式消息或编辑+ 快照保留所有权;调用方仍得到读取的历史,用于独立动作校验。+会话 Stop 请求失败时保留最后已知的运行状态,传输错误不能当作进程停止确认。成功 Stop 和权威结束事件继续清除运行标记。diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex a60391a8b,4f7f956b8..624961b25--- 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,16 +1,23 @@@# 04. E2E 测试 Plan+### E2E-FILE-INDEX-git-deadline++对真实测试文件调用 `getWorkspaceFileIndex` 和 `searchWorkspaceFiles`,+保持 Git 的 close 事件未到达,推进截止时间后两者均返回有界目录列表。+覆盖:`fs-index-git-deadline.test.mjs`。原有索引测试覆盖 Git 忽略规则、+Unicode 字节分块及深层搜索。++ ### E2E-EXTENSION-thinking-request-state++ 通过生产扩展桥接设置 high,发送提示并捕获提供商流参数。真实 Agent 循环+ 发送 high,与扩展查询值一致。`runtime.test.ts` 仅替换提供商流边界。++ ### E2E-TRANSCRIPT-full-read-cache-race++ 保持全量历史读取请求,发布新的流式快照,再返回旧读取结果。调用方得到历史,+ 会话缓存保留新快照。覆盖 `full-transcript-refresh-race.test.mjs` 和现有会话+ 更新回归,不执行模型请求。+### E2E-SESSION-rejected-stop-state在 API 边界拒绝远端 Stop,生产会话 slice 保留运行状态并传播错误。再次成功