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 yue530815ce0255
diff --cc docs/spec/04-ux/08-component-spec.mdindex 66f9e319f,5edc878cf..36eda6744--- 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 rejected session Stop request retains the last known running state. A+ transport failure is not confirmation of process settlement; successful Stop+ and authoritative terminal events continue to clear the running indicator.+Live delegation reconstruction crosses system notices as well as steeringmessages. An ordinary user prompt remains the run boundary. A running Taskbehind a system notice must not become aborted on navigation (Refs #1990).diff --cc docs/spec/06-delivery/04-e2e-test-plan.mdindex 8bfb4039a,9c57d7505..dc2e25edb--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@@ -1,12 -1,12 +1,19 @@@# 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-SESSION-rejected-stop-state++ Reject a remote Stop at the API boundary: the production session slice keeps+ its running state and rethrows the error. Retry successfully: both the active+ indicator and owning session running entry clear. Coverage:+ `failed-session-stop-state.test.mjs`, without provider execution.+### E2E-SUBAGENT-system-notice-reconstructionReconstruct a transcript with a running Task followed by a system notice.diff --cc docs/zh-CN/spec/04-ux/08-component-spec.mdindex ff612f26d,11dc7da16..1e25e734f--- 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 和权威结束事件继续清除运行标记。+运行中子代理状态重建跨过系统通知及 steering 消息,普通用户提示仍作为回合边界。系统通知之前仍在运行的 Task 不会因导航而显示已停止(Refs #1990)。diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex 411f1d815,9a88c0058..bffa9f1fc--- 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,11 +1,17 @@@# 04. E2E 测试 Plan+### E2E-MODEL-idle-write-order++保持空闲配置的首个响应,选择第二个模型再顺序释放响应,验证只有一个写入+进行中且最终保留最新模型。`session-model-write-order.test.mjs` 使用真实 slice+与协调器,仅控制 Host API 边界。运行中配置继续排队。++ ### E2E-SESSION-rejected-stop-state++ 在 API 边界拒绝远端 Stop,生产会话 slice 保留运行状态并传播错误。再次成功+ 停止后,当前标记和目标会话运行条目清除。覆盖+ `failed-session-stop-state.test.mjs`,不执行提供商请求。+### E2E-SUBAGENT-system-notice-reconstruction重建运行中的 Task 后接系统通知的会话,生产条目构建、运行状态选择及结果