Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(workflows): keep completed workflows reachable #24587

MergedBil0000(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/24587/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 34 additions and 9 deletions.

x
0 of 2 viewed, 2 left
21 additions and 0 deletionspackages/client-runtime/src/state/threadSubagents.test.tsModified
View file
@@ -182,4 +182,25 @@
expect(turn?.settledCount).toBe(1);
expect(turn?.subagents).toHaveLength(3);
});
+​
+ it("keeps settled workflows reachable without counting idle agents as done", () => {
+ const turn = deriveThreadTurnSubagents({
+ runs: [finishedRun, run("run-2", "completed")],
+ subagents: [
+ subagent({ id: "workflow", status: "completed", workflow: { phases: [], agents: [] } }),
+ subagent({
+ id: "idle",
+ runId: RunId.make("run-2"),
+ status: "idle",
+ updatedAt: at("2026-06-20T00:00:09.000Z"),
+ }),
+ ],
+ });
+​
+ expect(turn?.subagents.map((entry) => entry.id)).toEqual(["idle", "workflow"]);
+ expect(resolveSubagentPillSegment(turn)).toEqual({
+ label: "1 done",
+ accessibilityLabel: "1 agent done",
+ });
+ });
});
13 additions and 9 deletionspackages/client-runtime/src/state/threadSubagents.tsModified
View file
@@ -26,11 +26,6 @@