Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
test: 对齐系统通知和真实重启的子代理状态断言
geng yuefb5ad1a9c7f3
diff --git a/apps/desktop/test/send-now-subagent-rendering.test.mjs b/apps/desktop/test/send-now-subagent-rendering.test.mjsindex 916c6b7d5..3dd711c2a 100644--- a/apps/desktop/test/send-now-subagent-rendering.test.mjs+++ b/apps/desktop/test/send-now-subagent-rendering.test.mjs@@ -52,7 +52,8 @@ test("a steering response keeps the earlier delegation card live until parent seassert.equal(collectLiveDelegationEntries(beforeReply.slice(0, -1), beforeReply.at(-1), true).has("task"), true);const nextUser = { kind: "message", message: message("next", "user", "Next task.") };assert.equal(collectLiveDelegationEntries(entries, nextUser, true).has("task"), false);- assert.equal(collectLiveDelegationEntries(entries, { kind: "message", message: message("system", "system", "Restart") }, true).has("task"), false);+ assert.equal(collectLiveDelegationEntries(entries, { kind: "message", message: message("system", "system", "Runtime notice") }, true).has("task"), true);+ assert.equal(collectLiveDelegationEntries(entries, { kind: "message", message: message("restart", "system", "Restart") }, false).has("task"), false);const compaction = { kind: "compaction", mark: { id: "checkpoint" } };assert.equal(collectLiveDelegationEntries([...history, compaction], entries.at(-1), true).has("task"), true);const completedTask = { ...task, toolResult: { details: { delegationId: "delegate", status: "completed" } } };