Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): subagents sent a follow-up show as running in Lineage #15334

Mergedscratchyone(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/15334/headmerged by maria-rcks View on GitHub

Showing 3 changed files with 72 additions and 5 deletions.

x
0 of 3 viewed, 3 left
37 additions and 4 deletionsapps/web/src/components/chat/ThreadRelationshipsControl.tsxModified
View file
@@ -5,7 +5,10 @@
import { SubagentTooltipContent } from "./SubagentTooltipContent";
import { PullRequestGlyph } from "../pullRequest/pullRequestIcons";
import { scopedThreadKey, scopeThreadRef } from "@t3tools/client-runtime/environment";
-import { projectedSubagentsToRuntime } from "@t3tools/client-runtime/state/subagentRuntime";
+import {
+ projectedSubagentsToRuntime,
+ type RuntimeSubagent,
+} from "@t3tools/client-runtime/state/subagentRuntime";
import { formatSubagentDisplayTitle } from "@t3tools/client-runtime/state/subagent-display";
import {
deriveThreadRelationshipGraph,
@@ -23,6 +26,7 @@
} from "@t3tools/client-runtime/state/thread-workflows";
import type { EnvironmentId, OrchestrationV2ThreadShell, ThreadId } from "@t3tools/contracts";
import { groupBy } from "effect/Array";
+import * as DateTime from "effect/DateTime";
import { useNavigate } from "@tanstack/react-router";
import {
ArrowRightIcon,
@@ -162,6 +166,30 @@
return formatSubagentDisplayTitle(input.title);
​
+/**
+ * A delegated task settles with its first run, but the parent can keep sending
+ * the child follow-ups. While the child thread has a live run, the row's timer
+ * and hover card follow that run instead of the settled task.