Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(test): preserve delegation liveness across steering replies

zszz35429fac72731
diff --git a/apps/desktop/test/subagent-transcript.test.mjs b/apps/desktop/test/subagent-transcript.test.mjs
index 94ca1995d..4f7784482 100644
--- a/apps/desktop/test/subagent-transcript.test.mjs
+++ b/apps/desktop/test/subagent-transcript.test.mjs
@@ -70,9 +70,10 @@ test("a delegation card reads its outcome from the lifecycle rows", () => {
transcriptSource,
/const delegationStatuses = useMemo\(\(\) => turnDelegationStatuses \?\? collectDelegationStatuses\(delegationItems\)/,
);
+ // Delegates remain live across replies split by steering in the same runtime turn.
assert.match(
transcriptSource,
- /collectDelegationStatuses\(delegationItems, \{ turnLive: isActive \}\)/,
+ /collectDelegationStatuses\(delegationItems, \{ turnLive: isActive \|\| delegationsLive === true \}\)/,
);
assert.match(transcriptSource, /const tools = reuseReferences\(toolsRef\.current, summary\.tools\)/);
assert.match(transcriptSource, /delegationItems = useMemo\(\(\) => tools\.map/);