Open History to see the last commit
1import { ThreadHoverCardPopup } from "../ThreadHoverCard";
2import { AgentElapsed } from "./AgentElapsed";
3import { projectedSubagentsToRuntime } from "@t3tools/client-runtime/state/subagentRuntime";
4import type { ReactNode } from "react";
5import { useThreadShell, useProject } from "../../state/entities";
6import { useEnvironment } from "../../state/environments";
7import { buildThreadRouteParams } from "../../threadRoutes";
8import { useNavigate } from "@tanstack/react-router";
9import { SubagentTooltipContent } from "./SubagentTooltipContent";
10import { useAtomValue } from "@effect/atom-react";
11import { scopeThreadRef, scopeProjectRef } from "@t3tools/client-runtime/environment";
12import { environmentThreadDetails } from "../../state/threads";
13import { EMPTY_SERVER_PROVIDERS, serverEnvironment } from "../../state/server";
14import { MiddleTruncate } from "../ui/middle-truncate";
15import * as DateTime from "effect/DateTime";
16import { WorkLogRow } from "./WorkLog";
17import {
18 resolveHandoffEndpoints,
19 type HandoffEndpoints,
20 type HandoffTimelineRun,
21} from "@t3tools/client-runtime/handoff";
22import { formatSubagentDisplayTitle } from "@t3tools/client-runtime/state/subagent-display";
23import {
24 ProviderDriverKind,
25 type OrchestrationV2Notification,
26 type OrchestrationV2TurnItem,
27 type OrchestrationV2RemoteTaskChild,
28 type OrchestrationV2Subagent,
29 type ProviderInstanceId,
30 type ServerProvider,
31 type ThreadId,
32 type EnvironmentId,
33 type NodeId,
34 type ScopedThreadRef,
35} from "@t3tools/contracts";
36import type { TimestampFormat } from "@t3tools/contracts/settings";
37import {
38 BotIcon,
39 ChevronRightIcon,
40 CircleStopIcon,
41 ArrowRightLeftIcon,
42 ArrowRightIcon,
43 GitForkIcon,
44 MessageSquareIcon,
45} from "lucide-react";
46
47import { Tooltip, TooltipTrigger, TooltipPopup } from "../ui/tooltip";
48import {
49 applyProviderInstanceSettings,
50 deriveProviderInstanceEntries,
51 shouldShowInstanceBadge,
52 type ProviderInstanceEntry,
53} from "../../providerInstances";
54import { formatShortTimestamp } from "../../timestampFormat";
55import { getTriggerDisplayModelName } from "./providerIconUtils";
56import { ProviderInstanceIcon, providerTextColor } from "./ProviderInstanceIcon";
57import { cn } from "~/lib/utils";
58import { TimelineSystemDivider } from "./TimelineSystemDivider";
59import { subagentResumedSince } from "./V2LifecycleRow.logic";
60import { Button, InlineButton } from "../ui/button";
61import { T3Wordmark } from "../T3Wordmark";
62
63export type { HandoffTimelineRun } from "@t3tools/client-runtime/handoff";
64
65export function V2LifecycleRow(props: {
66 readonly item: OrchestrationV2TurnItem;
67 readonly environmentId: EnvironmentId;
68 readonly resourceSummary?: boolean | undefined;
69 readonly runs: ReadonlyArray<HandoffTimelineRun>;
70 readonly onOpenThread: (threadId: ThreadId) => void;
71}) {
72 const { item } = props;
73 if (item.type === "run_interrupt_result") {
74 return (
75 <TimelineSystemDivider label="Run interrupted" detail={item.message} icon={CircleStopIcon} />
76 );
77 }
78 if (item.type === "handoff") {
79 return (
80 <EnvironmentHandoffRow
81 environmentId={props.environmentId}
82 endpoints={resolveHandoffEndpoints(item, props.runs)}
83 failed={item.status === "failed"}
84 />
85 );
86 }
87 if (item.type === "fork") {
88 const relatedThreadId = item.source.type === "run" ? item.source.threadId : item.targetThreadId;
89 return (
90 <TimelineSystemDivider
91 label={item.source.type === "run" ? "Forked from conversation" : "Conversation fork"}
92 icon={GitForkIcon}
93 actionLabel={item.source.type === "run" ? "Open source conversation" : "Open fork"}
94 onAction={() => props.onOpenThread(relatedThreadId)}
95 />
96 );
97 }
98 if (item.type === "thread_created") {
99 if (props.resourceSummary) {
100 return (
101 <div
102 data-v2-item-type={item.type}
103 className="flex min-w-0 items-center gap-3 rounded-lg border border-border/60 p-3"
104 >
105 <span className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-muted/60">
106 <MessageSquareIcon className="size-4 text-secondary-label" aria-hidden />
107 </span>
108 <span className="min-w-0 flex-1 truncate text-sm font-medium">
109 {item.title ?? "Created thread"}
110 </span>
111 <Button
112 size="xs"
113 variant="outline"
114 aria-label={`Open ${item.title ?? "created thread"}`}
115 onClick={() => props.onOpenThread(item.targetThreadId)}
116 >
117 Open chat
118 </Button>
119 </div>
120 );
121 }
122 return (
123 <WorkLogRow
124 data-v2-item-type={item.type}
125 icon={<T3Wordmark className="size-4 text-icon-muted" aria-hidden />}
126 label={<>Created thread{item.title ? ` · ${item.title}` : ""}</>}
127 trailing={
128 <InlineButton
129 aria-label={`Open ${item.title ?? "created thread"}`}
130 onClick={() => props.onOpenThread(item.targetThreadId)}
131 >
132 Open chat
133 </InlineButton>
134 }
135 />
136 );
137 }
138 if (item.type === "subagent") {
139 return (
140 <SubagentTimelineLink
141 parentRef={scopeThreadRef(props.environmentId, item.threadId)}
142 subagentId={item.subagentId}
143 providerInstanceId={item.providerInstanceId}
144 origin={item.origin}
145 status={item.status}
146 driver={item.driver}
147 title={formatSubagentDisplayTitle(item.title ?? "Subagent")}
148 result={item.result}
149 progress={item.progress}
150 startedAt={item.startedAt}
151 completedAt={item.completedAt}
152 threadId={item.childThreadId}
153 remote={item.remoteChild}
154 onOpenThread={props.onOpenThread}
155 />
156 );
157 }
158 return null;
159}
160
161const STATUS_VISUALS: Record<
162 OrchestrationV2TurnItem["status"],
163 { dotClass: string; label: string }
164> = {
165 pending: { dotClass: "bg-info", label: "Queued" },
166 running: { dotClass: "bg-info", label: "Running" },
167 waiting: { dotClass: "bg-info", label: "Waiting" },
168 idle: { dotClass: "bg-muted-foreground/50", label: "Idle · resumable" },
169 completed: { dotClass: "bg-success", label: "Completed" },
170 failed: { dotClass: "bg-destructive", label: "Failed" },
171 cancelled: { dotClass: "bg-muted-foreground/60", label: "Stopped" },
172 interrupted: { dotClass: "bg-muted-foreground/60", label: "Stopped" },
173};
174
175function subagentStatusVisual(status: OrchestrationV2TurnItem["status"]) {
176 return STATUS_VISUALS[status];
177}
178
179const SETTLED_SUBAGENT_STATUSES = new Set<OrchestrationV2TurnItem["status"]>([
180 "completed",
181 "failed",
182 "cancelled",
183 "interrupted",
184]);
185
186const GENERIC_CHILD_END = /^Child task ended with status\b/i;
187
188function plainDetail(text: string): string {
189 return text
190 .replace(/\[([^\]]+)\]\([^)]*\)/g, "$1")
191 .replace(/`/g, "")
192 .replace(/^[ \t]*[-*][ \t]+/gm, "")
193 .replace(/\s+/g, " ")
194 .trim();
195}
196
197function isoOrNull(value: DateTime.Utc | null | undefined): string | null {
198 return value ? DateTime.formatIso(value) : null;
199}
200
201export function SubagentElapsed({ agent }: { agent: Parameters<typeof AgentElapsed>[0]["agent"] }) {
202 return <AgentElapsed agent={agent} />;
203}
204
205function SubagentAvatar({
206 driver,
207 displayName,
208 iconUrl,
209 status,
210 className,
211}: {
212 driver?: ProviderDriverKind | undefined;
213 displayName?: string | undefined;
214 iconUrl?: string | undefined;
215 status?: OrchestrationV2TurnItem["status"] | undefined;
216 className?: string;
217}) {
218 return (
219 <span
220 aria-hidden
221 className={cn(
222 "relative inline-flex size-6 shrink-0 items-center justify-center rounded-full border border-border/70 bg-muted ring-2 ring-background",
223 className,
224 )}
225 >
226 {driver ? (
227 <ProviderInstanceIcon
228 driverKind={driver}
229 displayName={displayName ?? driver}
230 acpRegistryIconUrl={iconUrl}
231 className="z-auto"
232 iconClassName="size-3.5"
233 />
234 ) : (
235 <BotIcon className="size-3.5 text-muted-foreground" />
236 )}
237 {status ? (
238 <span
239 className={cn(
240 "absolute -right-px -bottom-px size-2 rounded-full ring-2 ring-background",
241 subagentStatusVisual(status).dotClass,
242 )}
243 />
244 ) : null}
245 </span>
246 );
247}
248
249// Select strings; status pushes replace providers even when avatar fields are unchanged.
250export function EnvironmentSubagentAvatar({
251 environmentId,
252 providerInstanceId,
253 driver,
254 remote,
255 ...props
256}: {
257 environmentId: EnvironmentId;
258 providerInstanceId: ProviderInstanceId;
259 driver?: ProviderDriverKind | undefined;
260 /** A task in a linked environment runs a provider instance there; its driver here is only a label. */
261 remote?: OrchestrationV2RemoteTaskChild | undefined;
262 status?: OrchestrationV2TurnItem["status"] | undefined;
263}) {
264 const providersAtom = serverEnvironment.providersValueAtom(
265 remote?.environmentId ?? environmentId,
266 );
267 const providerDriver = useAtomValue(
268 providersAtom,
269 (providers) =>
270 providers?.find((provider) => provider.instanceId === providerInstanceId)?.driver,
271 );
272 const displayName = useAtomValue(
273 providersAtom,
274 (providers) =>
275 providers?.find((provider) => provider.instanceId === providerInstanceId)?.displayName,
276 );
277 const iconUrl = useAtomValue(
278 providersAtom,
279 (providers) =>
280 providers?.find((provider) => provider.instanceId === providerInstanceId)?.iconUrl,
281 );
282 return (
283 <SubagentAvatar
284 {...props}
285 driver={providerDriver ?? (remote === undefined ? driver : undefined)}
286 displayName={displayName}
287 iconUrl={iconUrl}
288 />
289 );
290}
291
292const NOTIFICATION_OUTCOME_STATUS: Record<
293 OrchestrationV2Notification["outcome"],
294 OrchestrationV2TurnItem["status"] | null
295> = {
296 completed: "completed",
297 failed: "failed",
298 cancelled: "cancelled",
299 updated: null,
300 unknown: null,
301};
302
303const NOTIFICATION_OUTCOME_LABEL: Record<OrchestrationV2Notification["outcome"], string> = {
304 completed: "Finished",
305 failed: "Failed",
306 cancelled: "Stopped",
307 updated: "Updated",
308 unknown: "Finished",
309};
310
311export function SubagentNotificationLink(props: {
312 readonly parentRef: ScopedThreadRef;
313 readonly childThreadId: ThreadId;
314 readonly taskIds?: ReadonlyArray<NodeId> | undefined;
315 readonly outcome: OrchestrationV2Notification["outcome"];
316 readonly createdAt: string;
317 readonly timestampFormat: TimestampFormat;
318 readonly onOpenThread: (threadId: ThreadId) => void;
319 readonly fallback: ReactNode;
320}) {
321 // Follow-up tasks share a child conversation; this notice reports a particular task result.
322 const agent = useAtomValue(
323 environmentThreadDetails.threadAtom(props.parentRef),
324 (thread) =>
325 thread?.projection.subagents.find((agent) =>
326 props.taskIds === undefined
327 ? agent.childThreadId === props.childThreadId
328 : props.taskIds.includes(agent.id),
329 ) ?? null,
330 );
331 if (agent === null) return props.fallback;
332 const resumed =
333 NOTIFICATION_OUTCOME_STATUS[props.outcome] !== null &&
334 subagentResumedSince(agent, props.createdAt);
335 return (
336 <SubagentTimelineLink
337 parentRef={props.parentRef}
338 subagentId={agent.id}
339 providerInstanceId={agent.providerInstanceId}
340 origin={agent.origin}
341 status={agent.status}
342 driver={agent.driver}
343 title={formatSubagentDisplayTitle(agent.title ?? "Subagent")}
344 result={agent.result}
345 progress={agent.progress}
346 startedAt={agent.startedAt}
347 completedAt={agent.completedAt}
348 threadId={props.childThreadId}
349 onOpenThread={props.onOpenThread}
350 {...(resumed
351 ? {}
352 : {
353 event: {
354 status: NOTIFICATION_OUTCOME_STATUS[props.outcome],
355 label: NOTIFICATION_OUTCOME_LABEL[props.outcome],
356 timestamp: formatShortTimestamp(props.createdAt, props.timestampFormat),
357 },
358 })}
359 />
360 );
361}
362
363function SubagentTimelineLink(props: {
364 readonly parentRef: ScopedThreadRef;
365 readonly subagentId: NodeId;
366 readonly providerInstanceId: ProviderInstanceId;
367 readonly origin: OrchestrationV2Subagent["origin"];
368 readonly driver: ProviderDriverKind;
369 readonly title: string;
370 readonly result: string | null;
371 readonly progress: string | undefined;
372 readonly status: OrchestrationV2TurnItem["status"];
373 readonly startedAt: DateTime.Utc | null;
374 readonly completedAt: DateTime.Utc | null;
375 readonly threadId: ThreadId | null;
376 /** The thread in a linked environment that runs this task, when it runs there. */
377 readonly remote?: OrchestrationV2RemoteTaskChild | undefined;
378 readonly onOpenThread: (threadId: ThreadId) => void;
379 readonly event?: {
380 readonly status: OrchestrationV2TurnItem["status"] | null;
381 readonly label: string;
382 readonly timestamp: string;
383 };
384}) {
385 const agent = useAtomValue(
386 environmentThreadDetails.threadAtom(props.parentRef),
387 (thread) => thread?.projection.subagents.find((agent) => agent.id === props.subagentId) ?? null,
388 );
389 const remote = props.remote ?? agent?.remoteChild;
390 const remoteEnvironment = useEnvironment(remote?.environmentId ?? null);
391 const navigate = useNavigate();
392 const threadId = props.threadId;
393 // A task in a linked environment opens there, if this client is connected to it.
394 const open =
395 threadId !== null
396 ? () => props.onOpenThread(threadId)
397 : remote !== undefined && remoteEnvironment !== null
398 ? () =>
399 void navigate({
400 to: "/$environmentId/$threadId",
401 params: buildThreadRouteParams(scopeThreadRef(remote.environmentId, remote.threadId)),
402 })
403 : null;
404 const liveStatus = agent?.status ?? props.status;
405 const status = props.event ? props.event.status : liveStatus;
406 const statusLabel = props.event?.label ?? subagentStatusVisual(liveStatus).label;
407 const result = (agent?.result ?? props.result)?.trim();
408 const progress = (agent?.progress ?? props.progress)?.trim();
409 const settled = SETTLED_SUBAGENT_STATUSES.has(status ?? liveStatus);
410 const rawDetail = settled ? result || progress : progress || result;
411 const detail =
412 rawDetail && !GENERIC_CHILD_END.test(rawDetail) ? plainDetail(rawDetail) || null : null;
413 const failed = status === "failed";
414 const timing = {
415 status: liveStatus,
416 startedAt: isoOrNull(agent?.startedAt ?? props.startedAt),
417 completedAt: isoOrNull(agent?.completedAt ?? props.completedAt),
418 };
419 const content = (
420 <>
421 <EnvironmentSubagentAvatar
422 environmentId={props.parentRef.environmentId}
423 providerInstanceId={props.providerInstanceId}
424 driver={props.driver}
425 remote={remote}
426 status={status ?? undefined}
427 />
428 <span className="min-w-0 flex-1">
429 <span className="flex items-baseline gap-2">
430 <span className="min-w-0 truncate text-xs font-medium text-foreground">
431 {props.title}
432 </span>
433 {remote !== undefined ? (
434 <span className="shrink-0 text-xs text-muted-foreground">on {remote.label}</span>
435 ) : null}
436 </span>
437 <span
438 className={cn(
439 "block text-2xs leading-relaxed",
440 failed ? "text-destructive" : "text-muted-foreground",
441 )}
442 >
443 {detail === null ? (
444 statusLabel
445 ) : detail.includes("/") && !detail.includes(" ") ? (
446 <MiddleTruncate value={detail} showTitle={false} className="flex" />
447 ) : (
448 <span className="block truncate">{detail}</span>
449 )}
450 </span>
451 </span>
452 {detail !== null && (props.event !== undefined || status !== "completed") ? (
453 <span
454 className={cn("shrink-0 text-xs", failed ? "text-destructive" : "text-muted-foreground")}
455 >
456 {statusLabel}
457 </span>
458 ) : null}
459 <span className="shrink-0 text-xs text-muted-foreground tabular-nums">
460 {props.event ? props.event.timestamp : <SubagentElapsed agent={timing} />}
461 </span>
462 {open !== null ? (
463 <ChevronRightIcon
464 aria-hidden
465 className="size-3.5 shrink-0 text-muted-foreground/60 transition-colors group-hover/subagent:text-foreground"
466 />
467 ) : null}
468 </>
469 );
470 const className =
471 "group/subagent flex w-full min-w-0 items-center gap-2.5 rounded-md px-2 py-1.5 text-left";
472 return (
473 <Tooltip>
474 <TooltipTrigger
475 delay={200}
476 render={
477 open === null ? (
478 <div data-v2-item-type="subagent" aria-description={statusLabel} className={className}>
479 {content}
480 </div>
481 ) : (
482 <button
483 type="button"
484 data-v2-item-type="subagent"
485 aria-label={`Open ${props.title}`}
486 aria-description={statusLabel}
487 onClick={open}
488 className={cn(
489 className,
490 "cursor-pointer transition-colors hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70",
491 )}
492 >
493 {content}
494 </button>
495 )
496 }
497 />
498 <ThreadHoverCardPopup>
499 <SubagentTimelineTooltip
500 {...props}
501 elapsed={agent ? <AgentElapsed agent={projectedSubagentsToRuntime([agent])[0]!} /> : null}
502 model={agent?.model ?? null}
503 modelSelection={agent?.modelSelection}
504 status={liveStatus}
505 result={agent?.result ?? props.result}
506 progress={agent?.progress ?? props.progress}
507 />
508 </ThreadHoverCardPopup>
509 </Tooltip>
510 );
511}
512
513function SubagentTimelineTooltip(
514 props: Parameters<typeof SubagentTimelineLink>[0] & {
515 model: string | null;
516 modelSelection: OrchestrationV2Subagent["modelSelection"];
517 elapsed: ReactNode;
518 },
519) {
520 const environmentId = props.parentRef.environmentId;
521 // Read providers only in the open popup to avoid per-row subscriptions.
522 const providers =
523 useAtomValue(serverEnvironment.providersValueAtom(environmentId)) ?? EMPTY_SERVER_PROVIDERS;
524 const parent = useThreadShell(props.parentRef)?.source;
525 const child = useThreadShell(
526 props.threadId ? scopeThreadRef(environmentId, props.threadId) : null,
527 )?.source;
528 const parentProject = useProject(
529 parent ? scopeProjectRef(environmentId, parent.projectId) : null,
530 );
531 const childProject = useProject(child ? scopeProjectRef(environmentId, child.projectId) : null);
532 return (
533 <SubagentTooltipContent
534 title={formatSubagentDisplayTitle(child?.title ?? props.title)}
535 model={props.model}
536 providerInstanceId={props.providerInstanceId}
537 origin={props.origin}
538 modelSelection={props.modelSelection}
539 provider={providers.find((provider) => provider.instanceId === props.providerInstanceId)}
540 providers={providers}
541 driver={props.driver}
542 elapsed={props.elapsed}
543 status={props.status}
544 result={props.result}
545 progress={props.progress}
546 parentThread={parent}
547 childThread={child}
548 parentProject={parentProject ?? undefined}
549 childProject={childProject ?? undefined}
550 />
551 );
552}
553
554function EnvironmentHandoffRow({
555 environmentId,
556 ...props
557}: {
558 readonly environmentId: EnvironmentId;
559 readonly endpoints: HandoffEndpoints;
560 readonly failed: boolean;
561}) {
562 const providers =
563 useAtomValue(serverEnvironment.providersValueAtom(environmentId)) ?? EMPTY_SERVER_PROVIDERS;
564 return <HandoffRow {...props} environmentId={environmentId} providers={providers} />;
565}
566
567export function HandoffRow(props: {
568 readonly environmentId: EnvironmentId;
569 readonly endpoints: HandoffEndpoints;
570 readonly providers: ReadonlyArray<ServerProvider>;
571 readonly pending?: boolean;
572 readonly failed?: boolean;
573}) {
574 const { from: fromEndpoints, to } = props.endpoints;
575 const settings = useAtomValue(serverEnvironment.settingsValueAtom(props.environmentId));
576 const derived = deriveProviderInstanceEntries(props.providers);
577 const entries = settings ? applyProviderInstanceSettings(derived, settings, null) : derived;
578 return (
579 <TimelineSystemDivider
580 label={props.pending ? "Context handoff pending" : "Context handoff"}
581 icon={ArrowRightLeftIcon}
582 showDetailSeparator={false}
583 tone={props.failed ? "danger" : "neutral"}
584 detail={
585 <span className="inline-flex min-w-0 flex-wrap items-center justify-center gap-1.5">
586 {fromEndpoints.map((endpoint, index) => (
587 <span
588 key={`${endpoint.instanceId}:${endpoint.model ?? ""}`}
589 className="inline-flex min-w-0 items-center"
590 >
591 <HandoffEndpoint
592 entries={entries}
593 instanceId={endpoint.instanceId}
594 model={endpoint.model}
595 />
596 {index < fromEndpoints.length - 1 ? (
597 <span aria-hidden="true" className="ml-0.5">
598 ,
599 </span>
600 ) : null}
601 </span>
602 ))}
603 {fromEndpoints.length > 0 ? (
604 <ArrowRightIcon aria-hidden="true" className="size-3 shrink-0" />
605 ) : null}
606 <HandoffEndpoint entries={entries} instanceId={to.instanceId} model={to.model} />
607 </span>
608 }
609 />
610 );
611}
612
613function HandoffEndpoint(props: {
614 readonly entries: ReadonlyArray<ProviderInstanceEntry>;
615 readonly instanceId: ProviderInstanceId;
616 readonly model?: string | undefined;
617}) {
618 const entry = props.entries.find((candidate) => candidate.instanceId === props.instanceId);
619 const showBadge = entry !== undefined && shouldShowInstanceBadge(entry, props.entries);
620 const model = props.model?.trim();
621 const providerModel =
622 model === undefined || model.length === 0
623 ? undefined
624 : entry?.models.find((candidate) => candidate.slug === model);
625 const label =
626 providerModel !== undefined
627 ? getTriggerDisplayModelName(providerModel, entry?.driverKind)
628 : model !== undefined && model.length > 0
629 ? model
630 : (entry?.displayName ?? props.instanceId);
631 const labelColor = providerTextColor(
632 entry?.driverKind ?? ProviderDriverKind.make(props.instanceId),
633 );
634 return (
635 <Tooltip>
636 <TooltipTrigger
637 render={
638 <span
639 tabIndex={0}
640 className="inline-flex min-w-0 items-center gap-1.5 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
641 >
642 <ProviderInstanceIcon
643 driverKind={entry?.driverKind ?? ProviderDriverKind.make(props.instanceId)}
644 displayName={entry?.displayName ?? props.instanceId}
645 accentColor={entry?.accentColor}
646 acpRegistryAgentId={entry?.acpRegistryAgentId}
647 acpRegistryIconUrl={entry?.acpRegistryIconUrl}
648 showBadge={showBadge}
649 size="compact"
650 iconClassName={cn(showBadge && "opacity-60")}
651 indicatorBackground="var(--background)"
652 />
653 <span
654 className={cn("truncate font-medium", labelColor.className)}
655 style={labelColor.style}
656 >
657 {label}
658 </span>
659 </span>
660 }
661 />
662 <TooltipPopup>
663 {entry?.displayName ?? props.instanceId} · {label}
664 </TooltipPopup>
665 </Tooltip>
666 );
667}