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: integrate current main for model write ordering
vastsa8d57bff14ecf
diff --cc docs/spec/04-ux/08-component-spec.mdindex 36eda6744,1c42236c6..61c9f4cc7--- 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+Idle session model writes participate in the same per-session configuration+queue as running-turn changes. Rapid choices serialize; the newest queued+choice is applied after the in-flight write, rather than racing older replies.++ 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 dc2e25edb,f7347948c..fad7bc640--- 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-MODEL-idle-write-order++Hold the first idle configuration response, select a second model, then release+both responses. Assert a single in-flight write and the final newest model.+Coverage: `session-model-write-order.test.mjs`, using real slice/coordination+with only Host API controlled. Running-turn configuration remains queued.++ ### 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 1e25e734f,01a4366a4..0f6cdf671--- 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. 组件规格+空闲会话的模型写入使用与运行中配置相同的会话队列,快速选择顺序写入,+最新排队选择在当前写入完成后生效,避免旧响应覆盖新模型。++ 全量会话读取仅在请求期间缓存未改变时写入该会话缓存。新的流式消息或编辑+ 快照保留所有权;调用方仍得到读取的历史,用于独立动作校验。+会话 Stop 请求失败时保留最后已知的运行状态,传输错误不能当作进程停止确认。成功 Stop 和权威结束事件继续清除运行标记。diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex bffa9f1fc,4f7f956b8..70a63e5e9--- 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,11 -1,16 +1,22 @@@# 04. E2E 测试 Plan+### E2E-MODEL-idle-write-order++保持空闲配置的首个响应,选择第二个模型再顺序释放响应,验证只有一个写入+进行中且最终保留最新模型。`session-model-write-order.test.mjs` 使用真实 slice+与协调器,仅控制 Host API 边界。运行中配置继续排队。++ ### 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 保留运行状态并传播错误。再次成功