Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client): reactivate resumed Claude subagents #14031

Closedkvnloo(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/14031/headopened View on GitHub

Showing 2 changed files with 79 additions and 8 deletions.

x
0 of 2 viewed, 2 left
55 additions and 0 deletionspackages/client-runtime/src/state/subagentRuntime.test.tsModified
View file
@@ -194,6 +194,61 @@
expect(agent.status).toBe("running");
});
​
+ it("a new task.started toolUseId reactivates a terminal Claude subagent", () => {
+ const resumedAt = "2026-08-01T11:30:00.000Z";
+ const agents = fold([
+ activity("task.started", {
+ taskId: "task-resumed",
+ taskType: "subagent",
+ toolUseId: "tool-agent-call",
+ }),
+ activity("task.completed", {
+ taskId: "task-resumed",
+ status: "failed",
+ summary: "usage limit",
+ }),
+ activity(
+ "task.started",
+ {
+ taskId: "task-resumed",
+ taskType: "subagent",
+ toolUseId: "tool-send-message",
+ },
+ resumedAt,
+ ),
+ ]);
+ const agent = agents[0]!;
+ expect(agent.activationCount).toBe(2);
+ expect(agent.status).toBe("running");