Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

chore: sessions and schedule ui improvements (#575)

harshil-2096333230d0b700
diff --git a/.changeset/session-schedule-polish.md b/.changeset/session-schedule-polish.md
new file mode 100644
index 000000000..be60fef9e
--- /dev/null
+++ b/.changeset/session-schedule-polish.md
@@ -0,0 +1,5 @@
+---
+"@truefoundry/trueforge-ui": patch
+---
+
+Improve Agent Sessions with a resizable divider, accurate turn grouping, optional cost display, and reliable timeline tooltips with sub-agent details. Simplify schedule recurrence and default new schedules to the local timezone.
diff --git a/packages/trueforge-ui/package.json b/packages/trueforge-ui/package.json
index 0be745cc1..b6faa2a98 100644
--- a/packages/trueforge-ui/package.json
+++ b/packages/trueforge-ui/package.json
@@ -104,6 +104,7 @@
"partial-json": "^0.1.7",
"react-chartjs-2": "^5.3.1",
"react-markdown": "^10.1.0",
+ "react-resizable-panels": "^4.12.3",
"react-router-dom": "^6 || ^7",
"react-syntax-highlighter": "^16.1.1",
"remark-gfm": "^4.0.1",
diff --git a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionEventTimelineChart.tsx b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionEventTimelineChart.tsx
index c488b05d9..8ddbff9c1 100644
--- a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionEventTimelineChart.tsx
+++ b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionEventTimelineChart.tsx
@@ -9,7 +9,7 @@ import {
type ChartOptions,
type Plugin,
} from 'chart.js';
-import { useEffect, useMemo, useRef, useState, type ComponentType, type CSSProperties } from 'react';
+import { useCallback, useEffect, useMemo, useRef, useState, type ComponentType, type CSSProperties } from 'react';
import { Bar } from 'react-chartjs-2';
import { useThemeMode } from '../../theme/SlotsProvider.js';
@@ -24,6 +24,7 @@ import {
import {
buildTimelineAxisTicks,
getActiveTimelineMs,
+ getSubAgentHoverGroups,
getSubAgentLanes,
getTimelineHoverTargetId,
getTimelineLayout,
@@ -39,6 +40,7 @@ import { LightTooltip } from '../primitives/Tooltip.js';
import {
hasSessionEventTooltip,
SessionEventTooltip,
+ SessionSubAgentGroupTooltip,
SessionToolCallGroupTooltip,
SessionTurnTooltip,
} from './AgentSessionTimelineTooltip.js';
@@ -96,6 +98,7 @@ export function AgentSessionEventTimelineChart({
const [tooltipTarget, setTooltipTarget] = useState<TimelineHoverTarget | null>(null);
const [tooltipAnchor, setTooltipAnchor] = useState<{ left: number; top: number } | null>(null);
const tooltipIdRef = useRef('');
+ const tooltipCursorXRef = useRef<number | null>(null);
useEffect(() => {
const wrapper = wrapperRef.current;
@@ -107,6 +110,33 @@ export function AgentSessionEventTimelineChart({
return () => observer.disconnect();
}, []);
+ const refreshTooltipAnchor = useCallback(() => {
+ const wrapper = wrapperRef.current;
+ const left = tooltipCursorXRef.current;
+ if (wrapper == null || left == null) return;
+ setTooltipAnchor({ left, top: wrapper.getBoundingClientRect().bottom });
+ }, []);
+
+ const clearTooltip = useCallback(() => {
+ tooltipIdRef.current = '';
+ tooltipCursorXRef.current = null;
+ setTooltipTarget(null);
+ setTooltipAnchor(null);
+ }, []);
+
+ useEffect(() => {
+ if (tooltipTarget == null) return undefined;
+ // Anchors use viewport coordinates, so remeasure the chart whenever any
+ // scroll ancestor or the viewport moves it.
+ refreshTooltipAnchor();
+ window.addEventListener('scroll', refreshTooltipAnchor, true);
+ window.addEventListener('resize', refreshTooltipAnchor);
+ return () => {
+ window.removeEventListener('scroll', refreshTooltipAnchor, true);
+ window.removeEventListener('resize', refreshTooltipAnchor);
+ };
+ }, [refreshTooltipAnchor, tooltipTarget]);
+
const activeTotalMs = Math.max(1, ...segments.map(segment => segment.endMs));
const { turnStartsMs, turnOrdinals, turnRanges } = useMemo(() => getTimelineLayout(segments), [segments]);
const gapCount = Math.max(0, turnStartsMs.length - 1);
@@ -150,6 +180,10 @@ export function AgentSessionEventTimelineChart({
[visibleSegments],
);
const mainSubAgents = useMemo(() => pickLongestNonOverlappingSegments(subAgentSegments), [subAgentSegments]);
+ const subAgentGroups = useMemo(
+ () => getSubAgentHoverGroups({ bars: mainSubAgents, subAgentSegments }),
+ [mainSubAgents, subAgentSegments],
+ );
const subAgentLanes = useMemo(
() => getSubAgentLanes({ subAgentSegments, threadSegments: visibleSegments, minWidthMs: MARKER_PX * msPerPx }),
[msPerPx, subAgentSegments, visibleSegments],
@@ -189,12 +223,14 @@ export function AgentSessionEventTimelineChart({
...subAgentLanes.flatMap(lane =>
lane.segments.map((segment): TimelineHoverTarget => ({ type: TIMELINE_TYPE.event, segment })),
),
- ...mainEventSegments.map((segment): TimelineHoverTarget | null =>
- segment.type === 'sub_agent' ? null : { type: TIMELINE_TYPE.event, segment },
- ),
+ ...mainEventSegments.map((segment): TimelineHoverTarget | null => {
+ if (segment.type !== 'sub_agent') return { type: TIMELINE_TYPE.event, segment };
+ const group = subAgentGroups.find(candidate => candidate.barId === segment.id);
+ return group == null ? { type: TIMELINE_TYPE.event, segment } : { type: TIMELINE_TYPE.subAgentGroup, group };
+ }),
...toolCallGroups.map((group): TimelineHoverTarget => ({ type: TIMELINE_TYPE.toolCallGroup, group })),
],
- [mainEventSegments, subAgentLanes, toolCallGroups, turnBars],
+ [mainEventSegments, subAgentGroups, subAgentLanes, toolCallGroups, turnBars],
);
const barDataset = ({
@@ -336,6 +372,10 @@ export function AgentSessionEventTimelineChart({
if (native?.target instanceof HTMLElement) {
native.target.style.cursor = next?.type === TIMELINE_TYPE.turn ? 'pointer' : 'default';
}
+ if (native instanceof MouseEvent) {
+ tooltipCursorXRef.current = native.clientX;
+ refreshTooltipAnchor();
+ }
// Pointer between bars keeps the current tooltip; a bar without a tooltip dismisses it.
if (hoveredDatasetIndex == null) return;
const nextId = getTimelineHoverTargetId(next);
@@ -346,11 +386,7 @@ export function AgentSessionEventTimelineChart({
setTooltipAnchor(null);
return;
}
- if (!(native instanceof MouseEvent) || !(native.target instanceof HTMLElement)) return;
- setTooltipAnchor({
- left: native.clientX,
- top: native.target.getBoundingClientRect().bottom,
- });
+ refreshTooltipAnchor();
},
plugins: { legend: { display: false }, tooltip: { enabled: false } },
scales: {
@@ -391,7 +427,7 @@ export function AgentSessionEventTimelineChart({
},
},
}),
- [axis, band, chartTargets, grid, onSelectTurn, timelineGaps, timelineMaxMs, totalMs],
+ [axis, band, chartTargets, grid, onSelectTurn, refreshTooltipAnchor, timelineGaps, timelineMaxMs, totalMs],
);
const tooltipTurn = tooltipTarget?.type === TIMELINE_TYPE.turn ? turns[tooltipTarget.bar.turnIndex] : undefined;
@@ -415,6 +451,8 @@ export function AgentSessionEventTimelineChart({
/>
) : tooltipTarget?.type === TIMELINE_TYPE.toolCallGroup ? (
<SessionToolCallGroupTooltip group={tooltipTarget.group} />
+ ) : tooltipTarget?.type === TIMELINE_TYPE.subAgentGroup ? (
+ <SessionSubAgentGroupTooltip group={tooltipTarget.group} />
) : null;
return (
@@ -424,10 +462,11 @@ export function AgentSessionEventTimelineChart({
side="bottom"
triggerClassName="block w-full"
followCursor
+ open={tooltipTarget != null && tooltipContent != null}
className="max-w-[min(25rem,calc(100vw-1rem))] whitespace-normal"
anchor={tooltipAnchor}
>
- <div className="w-full" style={containerStyle}>
+ <div className="w-full" style={containerStyle} onMouseLeave={clearTooltip}>
<Bar data={chartData} options={chartOptions} plugins={[turnLabelPlugin, overheadPlugin]} />
</div>
</LightTooltip>
diff --git a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionListRow.tsx b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionListRow.tsx
index 87a135835..76cfd0986 100644
--- a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionListRow.tsx
+++ b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionListRow.tsx
@@ -33,11 +33,9 @@ export function AgentSessionListRow({
<>
<Icon name="robot" className="size-3 shrink-0" />
<span className="truncate">{agentName}</span>
+ <span aria-hidden="true">·</span>
</>
- ) : (
- <span>Draft</span>
- )}
- <span aria-hidden="true">·</span>
+ ) : null}
<span>{relative}</span>
</span>
<span className="shrink-0 tabular-nums">{formatSessionListMetrics(metrics)}</span>
diff --git a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionMetricsStrip.tsx b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionMetricsStrip.tsx
index 173a4546c..16e3fd246 100644
--- a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionMetricsStrip.tsx
+++ b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionMetricsStrip.tsx
@@ -60,18 +60,20 @@ export function AgentSessionMetricsStrip({ metrics }: AgentSessionMetricsStripPr
</SessionMetricTooltipContent>
}
/>
- <SessionMetricTile
- id="cost"
- label="Cost"
- value={formatCostUsd(metrics.totalCostUsd)}
- tooltip={
- metrics.costPerTurn.length > 1 && metrics.totalCostUsd > 0 ? (
- <SessionMetricTooltipContent title="Cost per turn" fitWidth>
- <VerticalBarColumns data={metrics.costPerTurn} formatValue={formatCostUsd} />
- </SessionMetricTooltipContent>
- ) : null
- }
- />
+ {metrics.totalCostUsd != null ? (
+ <SessionMetricTile
+ id="cost"
+ label="Cost"
+ value={formatCostUsd(metrics.totalCostUsd)}
+ tooltip={
+ metrics.costPerTurn.length > 1 && metrics.totalCostUsd > 0 ? (
+ <SessionMetricTooltipContent title="Cost per turn" fitWidth>
+ <VerticalBarColumns data={metrics.costPerTurn} formatValue={formatCostUsd} />
+ </SessionMetricTooltipContent>
+ ) : null
+ }
+ />
+ ) : null}
<SessionMetricTile
id="tokens"
label="Tokens"
diff --git a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionTimelineTooltip.tsx b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionTimelineTooltip.tsx
index c66a87a19..de76b086c 100644
--- a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionTimelineTooltip.tsx
+++ b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionTimelineTooltip.tsx
@@ -8,7 +8,7 @@ import {
SESSION_EVENT_TOOLTIP_HIDE_DURATION,
type SessionEventTimelineSegment,
} from '../../utils/sessionEventTimeline.js';
-import type { TimelineToolCallGroup } from '../../utils/sessionEventTimelineChart.js';
+import type { TimelineSubAgentGroup, TimelineToolCallGroup } from '../../utils/sessionEventTimelineChart.js';
import type { SessionTurnView } from '../../utils/sessionTurnViews.js';
export function hasSessionEventTooltip(segment: SessionEventTimelineSegment): boolean {
@@ -118,3 +118,26 @@ export function SessionToolCallGroupTooltip({ group }: { group: TimelineToolCall
</div>
);
}
+
+export function SessionSubAgentGroupTooltip({ group }: { group: TimelineSubAgentGroup }) {
+ return (
+ <div className="max-h-72 w-80 max-w-full overflow-auto text-xs">
+ <div className="flex items-center justify-between gap-3">
+ <span className="font-medium text-text-secondary">Sub-agents</span>
+ <span className="tabular-nums text-text-secondary">{formatTimelineDuration(group.endMs - group.startMs)}</span>
+ </div>
+ <div className="mt-1.5 border-t border-border pt-1.5">
+ {group.segments.map((segment, index) => (
+ <div key={segment.id} className="flex items-center justify-between gap-2 py-0.5">
+ <span className="min-w-0 truncate font-medium text-text-primary">
+ {`Sub-agent ${index + 1}: ${segment.description || segment.title}`}
+ </span>
+ <span className="shrink-0 tabular-nums text-text-secondary">
+ {formatTimelineDuration(segment.endMs - segment.startMs)}
+ </span>
+ </div>
+ ))}
+ </div>
+ </div>
+ );
+}
diff --git a/packages/trueforge-ui/src/atoms/agent-details/AgentSessions.tsx b/packages/trueforge-ui/src/atoms/agent-details/AgentSessions.tsx
index 50e38b42e..b57c57eae 100644
--- a/packages/trueforge-ui/src/atoms/agent-details/AgentSessions.tsx
+++ b/packages/trueforge-ui/src/atoms/agent-details/AgentSessions.tsx
@@ -1,8 +1,10 @@
'use client';
import { useCallback, useEffect, useMemo, useRef, useState, type ComponentType } from 'react';
+import { Group, Panel, Separator } from 'react-resizable-panels';
import { useSessionShareSearch } from '../../hooks/useSessionShareSearch.js';
+import { Icon } from '../../icons/Icon.js';
import { useAgentSessionsServer, useServer } from '../../server/ServerContext.js';
import type { Session, SessionEventItem, SessionListEntry } from '../../server/types.js';
import { useSlot } from '../../theme/SlotsProvider.js';
@@ -158,82 +160,106 @@ export function AgentSessions({ agentId, startTimestamp, endTimestamp, shareView
: (selectedSessionId ?? 'Untitled session');
return (
- <div className="flex h-full min-h-0 w-full">
- <aside className="flex w-full max-w-xs shrink-0 flex-col border-r border-border bg-primary-bg md:max-w-sm">
- <div className="min-h-0 flex-1 overflow-y-auto">
- {listLoading ? (
- <div className="space-y-2 p-3" role="status" aria-label="Loading sessions">
- {['a', 'b', 'c'].map(key => (
- <Skeleton key={key} className="h-16 rounded-md" />
- ))}
+ <Group
+ id="agent-sessions-split"
+ orientation="horizontal"
+ className="h-full min-h-0 w-full"
+ resizeTargetMinimumSize={{ coarse: 24, fine: 11 }}
+ >
+ <Panel id="agent-sessions-list" defaultSize="35%" minSize="20%" maxSize="50%">
+ <aside className="flex h-full min-h-0 w-full flex-col bg-primary-bg">
+ <div className="scrollbar-none min-h-0 flex-1 overflow-y-auto">
+ {listLoading ? (
+ <div className="space-y-2 p-3" role="status" aria-label="Loading sessions">
+ {['a', 'b', 'c'].map(key => (
+ <Skeleton key={key} className="h-16 rounded-md" />
+ ))}
+ </div>
+ ) : listFailed ? (
+ <p className="px-3 py-6 text-center text-xs text-text-secondary">Sessions could not be loaded.</p>
+ ) : entries.length === 0 ? (
+ <p className="px-3 py-6 text-center text-xs text-text-secondary">No sessions are there yet</p>
+ ) : (
+ entries.map(entry => (
+ <AgentSessionListRow
+ key={entry.id}
+ title={sessionTitle(entry)}
+ agentName={entry.agentName ?? undefined}
+ lastActivityAt={entry.lastActivityAt}
+ metrics={entry.metrics}
+ active={entry.id === selectedSessionId}
+ onSelect={() => selectSession(entry)}
+ />
+ ))
+ )}
+ </div>
+
+ {nextPageToken != null && !listLoading ? (
+ <div className="shrink-0 border-t border-border p-3">
+ <button
+ type="button"
+ disabled={listLoadingMore}
+ onClick={() => void loadMore()}
+ className="h-8 w-full rounded-md border border-border text-xs font-medium text-text-primary hover:bg-ghost-button-hover disabled:opacity-60"
+ >
+ {listLoadingMore ? 'Loading…' : 'Load more'}
+ </button>
</div>
- ) : listFailed ? (
- <p className="px-3 py-6 text-center text-xs text-text-secondary">Sessions could not be loaded.</p>
- ) : entries.length === 0 ? (
- <p className="px-3 py-6 text-center text-xs text-text-secondary">No sessions are there yet</p>
- ) : (
- entries.map(entry => (
- <AgentSessionListRow
- key={entry.id}
- title={sessionTitle(entry)}
- agentName={entry.agentName ?? undefined}
- lastActivityAt={entry.lastActivityAt}
- metrics={entry.metrics}
- active={entry.id === selectedSessionId}
- onSelect={() => selectSession(entry)}
- />
- ))
- )}
- </div>
+ ) : null}
+ </aside>
+ </Panel>
- {nextPageToken != null && !listLoading ? (
- <div className="shrink-0 border-t border-border p-3">
- <button
- type="button"
- disabled={listLoadingMore}
- onClick={() => void loadMore()}
- className="h-8 w-full rounded-md border border-border text-xs font-medium text-text-primary hover:bg-ghost-button-hover disabled:opacity-60"
- >
- {listLoadingMore ? 'Loading…' : 'Load more'}
- </button>
- </div>
- ) : null}
- </aside>
+ <Separator
+ id="agent-sessions-resizer"
+ aria-label="Resize session list"
+ className="group/resizer relative z-10 w-0 cursor-col-resize focus-visible:outline-none"
+ >
+ <div aria-hidden className="absolute inset-y-0 -left-1.25 w-2.75" />
+ <div aria-hidden className="absolute inset-y-0 left-0 w-px bg-border transition-colors" />
+ <div
+ aria-hidden
+ className="absolute top-1/2 left-0 z-10 flex h-4 w-2 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-xs bg-primary-button-bg shadow-sm"
+ >
+ <Icon name="grip-vertical" size={10} className="text-primary-button-text" />
+ </div>
+ </Separator>
- <section className="flex min-w-0 flex-1 flex-col bg-primary-bg">
- {selectedSessionId == null ? (
- <div className="flex flex-1 items-center justify-center px-6 text-sm text-text-secondary">
- Select a session to view details
- </div>
- ) : detailFailed ? (
- <div className="flex flex-1 items-center justify-center px-6 text-sm text-text-secondary">
- Session details could not be loaded.
- </div>
- ) : (
- <>
- <AgentSessionDetailHeader
- title={selectedTitle}
- sessionId={selectedSessionId}
- agentId={agentId}
- createdAt={detailSession?.createdAt ?? selectedEntry?.createdAt}
- view={shareView}
- onClose={clearSelectedSession}
- />
- {detailLoading || detailEvents === undefined ? (
- <div className="flex flex-1 flex-col p-4" role="status" aria-label="Loading session details">
- <Skeleton className="min-h-64 flex-1 rounded-lg" />
- </div>
- ) : (
- <AgentSessionTimelineContainer
+ <Panel id="agent-session-detail" defaultSize="65%" minSize="30%">
+ <section className="flex h-full min-w-0 flex-col bg-primary-bg">
+ {selectedSessionId == null ? (
+ <div className="flex flex-1 items-center justify-center px-6 text-sm text-text-secondary">
+ Select a session to view details
+ </div>
+ ) : detailFailed ? (
+ <div className="flex flex-1 items-center justify-center px-6 text-sm text-text-secondary">
+ Session details could not be loaded.
+ </div>
+ ) : (
+ <>
+ <AgentSessionDetailHeader
+ title={selectedTitle}
sessionId={selectedSessionId}
- events={detailEvents}
- listMetrics={selectedEntry?.metrics}
+ agentId={agentId}
+ createdAt={detailSession?.createdAt ?? selectedEntry?.createdAt}
+ view={shareView}
+ onClose={clearSelectedSession}
/>
- )}
- </>
- )}
- </section>
- </div>
+ {detailLoading || detailEvents === undefined ? (
+ <div className="flex flex-1 flex-col p-4" role="status" aria-label="Loading session details">
+ <Skeleton className="min-h-64 flex-1 rounded-lg" />
+ </div>
+ ) : (
+ <AgentSessionTimelineContainer
+ sessionId={selectedSessionId}
+ events={detailEvents}
+ listMetrics={selectedEntry?.metrics}
+ />
+ )}
+ </>
+ )}
+ </section>
+ </Panel>
+ </Group>
);
}
diff --git a/packages/trueforge-ui/src/atoms/agent-details/types.ts b/packages/trueforge-ui/src/atoms/agent-details/types.ts
index 3f068228b..5dbfa2ba9 100644
--- a/packages/trueforge-ui/src/atoms/agent-details/types.ts
+++ b/packages/trueforge-ui/src/atoms/agent-details/types.ts
@@ -26,7 +26,7 @@ export type AgentSessionListRowProps = {
lastActivityAt: string;
metrics: {
totalTurns: number;
- totalCostInUsd: number;
+ totalCostInUsd?: number;
totalDurationMs: number;
};
active: boolean;
diff --git a/packages/trueforge-ui/src/atoms/primitives/Tooltip.tsx b/packages/trueforge-ui/src/atoms/primitives/Tooltip.tsx
index f51b48de0..2a968cb0b 100644
--- a/packages/trueforge-ui/src/atoms/primitives/Tooltip.tsx
+++ b/packages/trueforge-ui/src/atoms/primitives/Tooltip.tsx
@@ -69,6 +69,8 @@ export type TooltipProps = {
followCursor?: boolean;
/** When set, tooltip is pinned to these viewport coords instead of the trigger. */
anchor?: TooltipAnchor | null;
+ /** Controls visibility when provided; otherwise hover/focus owns it. */
+ open?: boolean;
};
export function Tooltip({
@@ -80,8 +82,13 @@ export function Tooltip({
dismissOnClick = true,
followCursor = false,
anchor = null,
+ open,
}: TooltipProps) {
- const [visible, setVisible] = useState(false);
+ const [uncontrolledVisible, setUncontrolledVisible] = useState(false);
+ const visible = open ?? uncontrolledVisible;
+ const setVisible = (next: boolean) => {
+ if (open === undefined) setUncontrolledVisible(next);
+ };
const [pos, setPos] = useState<{ top: number; left: number } | null>(null);
const triggerWrapRef = useRef<HTMLSpanElement>(null);
const tooltipRef = useRef<HTMLSpanElement>(null);
@@ -210,6 +217,7 @@ export type LightTooltipProps = {
dismissOnClick?: boolean;
followCursor?: boolean;
anchor?: TooltipAnchor | null;
+ open?: boolean;
};
export function LightTooltip({
@@ -222,6 +230,7 @@ export function LightTooltip({
dismissOnClick,
followCursor,
anchor,
+ open,
}: LightTooltipProps) {
return (
<Tooltip
@@ -232,6 +241,7 @@ export function LightTooltip({
dismissOnClick={dismissOnClick}
followCursor={followCursor}
anchor={anchor}
+ open={open}
>
{children}
</Tooltip>
diff --git a/packages/trueforge-ui/src/atoms/schedules/ScheduleFormFields.tsx b/packages/trueforge-ui/src/atoms/schedules/ScheduleFormFields.tsx
index 97a70fec8..3b3d0b66e 100644
--- a/packages/trueforge-ui/src/atoms/schedules/ScheduleFormFields.tsx
+++ b/packages/trueforge-ui/src/atoms/schedules/ScheduleFormFields.tsx
@@ -4,9 +4,9 @@ import { cn } from '../lib/cn.js';
import { auiInputClass } from '../lib/inputClasses.js';
import { PopoverSelect } from '../primitives/PopoverSelect.js';
import {
- TIMEZONE_OPTIONS,
WEEKDAY_OPTIONS,
formatCadenceSummary,
+ getTimezoneOptions,
valuesToCron,
type RecurrenceKind,
type ScheduleFormValues,
@@ -16,7 +16,6 @@ export const RECURRENCE_OPTIONS: Array<{ value: RecurrenceKind; label: string }>
{ value: 'hourly', label: 'Hourly' },
{ value: 'daily', label: 'Daily' },
{ value: 'weekly', label: 'Weekly' },
- { value: 'custom', label: 'Custom' },
];
const HOUR_OPTIONS = Array.from({ length: 24 }, (_, hour) => ({
@@ -47,6 +46,7 @@ export function ScheduleFormFields({
}: ScheduleFormFieldsProps) {
const cron = valuesToCron(values);
const cadence = formatCadenceSummary({ cron, timezone: values.timezone });
+ const timezoneOptions = getTimezoneOptions(values.timezone);
const set = <K extends keyof ScheduleFormValues>(key: K, value: ScheduleFormValues[K]) => {
onChange({ ...values, [key]: value });
@@ -97,7 +97,7 @@ export function ScheduleFormFields({
<fieldset>
<legend className="mb-1.5 text-sm font-medium">Recurrence</legend>
- <div className="grid grid-cols-4 gap-1 rounded-lg border border-border p-1">
+ <div className="grid grid-cols-3 gap-1 rounded-lg border border-border p-1">
{RECURRENCE_OPTIONS.map(opt => {
const selected = values.recurrence === opt.value;
return (
@@ -183,19 +183,13 @@ export function ScheduleFormFields({
) : null}
{values.recurrence === 'custom' ? (
- <label className="block">
- <span className="mb-1.5 block text-sm font-medium">Cron expression</span>
- <input
- value={values.customCron}
- onChange={e => set('customCron', e.target.value)}
- placeholder="0 9 * * 1-5"
- className={auiInputClass('h-9 font-mono')}
- required
- />
+ <div className="rounded-md border border-border bg-secondary-bg/40 px-3 py-2">
+ <span className="text-text-secondary block text-xs">Existing custom schedule</span>
+ <code className="text-text-primary mt-1 block font-mono text-sm">{values.customCron}</code>
<span className="text-text-secondary mt-1 block text-xs">
- Standard 5-field cron: minute hour day-of-month month day-of-week
+ Select Hourly, Daily, or Weekly to replace this schedule.
</span>
- </label>
+ </div>
) : null}
<div className="block">
@@ -203,7 +197,7 @@ export function ScheduleFormFields({
<PopoverSelect
aria-label="Timezone"
value={values.timezone}
- options={TIMEZONE_OPTIONS}
+ options={timezoneOptions}
onValueChange={value => set('timezone', value)}
menuPlacement="top"
/>
@@ -211,7 +205,7 @@ export function ScheduleFormFields({
<div className="rounded-lg border border-border bg-secondary-bg/40 px-3 py-3">
<div className="flex items-start justify-between gap-3">
- <span className="text-text-secondary text-[10px] font-semibold tracking-wide uppercase">Cadence</span>
+ <span className="text-text-secondary text-[10px] font-semibold tracking-wide uppercase">Frequency</span>
<code className="text-text-secondary font-mono text-xs">{cron || '—'}</code>
</div>
<p className="text-text-primary mt-1 text-sm font-semibold">{cadence || '—'}</p>
diff --git a/packages/trueforge-ui/src/atoms/schedules/cadence.ts b/packages/trueforge-ui/src/atoms/schedules/cadence.ts
index 7a2ce4ca4..310282970 100644
--- a/packages/trueforge-ui/src/atoms/schedules/cadence.ts
+++ b/packages/trueforge-ui/src/atoms/schedules/cadence.ts
@@ -24,6 +24,27 @@ export const TIMEZONE_OPTIONS = [
{ value: 'Asia/Tokyo', label: 'Asia/Tokyo (JST)' },
] as const;
+export function resolveLocalTimezone(): string {
+ try {
+ return Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC';
+ } catch {
+ return 'UTC';
+ }
+}
+
+export function getTimezoneOptions(selectedTimezone?: string): Array<{ value: string; label: string }> {
+ const localTimezone = resolveLocalTimezone();
+ const knownTimezones = new Set<string>(TIMEZONE_OPTIONS.map(option => option.value));
+ // Keep both browser-local and persisted zones selectable even when they are
+ // outside the curated common-timezone list.
+ const additionalTimezones = [localTimezone, selectedTimezone].flatMap(timezone => {
+ if (timezone == null || timezone.length === 0 || knownTimezones.has(timezone)) return [];
+ knownTimezones.add(timezone);
+ return [{ value: timezone, label: timezone === localTimezone ? `${timezone} (Local)` : timezone }];
+ });
+ return [...additionalTimezones, ...TIMEZONE_OPTIONS];
+}
+
export const WEEKDAY_OPTIONS = [
{ value: 1, label: 'Mon' },
{ value: 2, label: 'Tue' },
@@ -55,7 +76,7 @@ export function defaultScheduleFormValues(): ScheduleFormValues {
minute: 0,
weekdays: [1],
customCron: '0 9 * * *',
- timezone: 'America/New_York',
+ timezone: resolveLocalTimezone(),
};
}
diff --git a/packages/trueforge-ui/src/containers/AgentSessionTimelineContainer.tsx b/packages/trueforge-ui/src/containers/AgentSessionTimelineContainer.tsx
index 44d8d622f..8b5563019 100644
--- a/packages/trueforge-ui/src/containers/AgentSessionTimelineContainer.tsx
+++ b/packages/trueforge-ui/src/containers/AgentSessionTimelineContainer.tsx
@@ -11,6 +11,7 @@ import { useSlot } from '../theme/SlotsProvider.js';
import { buildSessionMetrics } from '../utils/buildSessionMetrics.js';
import { buildSessionTimelineSegments } from '../utils/buildSessionTimelineSegments.js';
import { createCachedListEventsBridge } from '../utils/cachedListEventsBridge.js';
+import { getTurnInputSummary } from '../utils/sessionTimelineEvents.js';
import { buildSessionTurnViews, type SessionTurnView } from '../utils/sessionTurnViews.js';
import { AssistantMessageContainer } from './AssistantMessageContainer.js';
import { ReadOnlySessionTurnRuntime } from './ReadOnlySessionTurnRuntime.js';
@@ -21,23 +22,84 @@ const READ_ONLY_SLOT_OVERRIDES: SlotOverrides = {
MessageActionBar: () => <></>,
};
+type TurnCreatedEvent = Extract<SessionEventItem['event'], { type: 'turn.created' }>;
+type UserMessageInput = Extract<NonNullable<TurnCreatedEvent['input']>[number], { type: 'user.message' }>;
+
function turnIdFromMessage(message: ThreadMessageLike): string {
const messageId = message.id ?? '';
- if (message.role === 'user') {
- return messageId.replace(/-user$/, '');
- }
- const custom = message.metadata?.custom;
- if (custom != null && typeof custom === 'object' && 'turnId' in custom) {
- const turnId = Reflect.get(custom, 'turnId');
- if (typeof turnId === 'string' && turnId.length > 0) {
- return turnId;
- }
- }
- return messageId.replace(/-assistant$/, '');
+ // The stable message id identifies the opening backend turn. Metadata can
+ // point at the latest continuation turn for artifact ownership.
+ return message.role === 'user' ? messageId.replace(/-user$/, '') : messageId.replace(/-assistant$/, '');
+}
+
+function buildProjectionEvents(items: SessionEventItem[], turns: SessionTurnView[]): SessionEventItem[] {
+ // The chat projection folds continuation inputs into the previous response.
+ // Add a display-only user boundary so Agent Details keeps each backend turn separate.
+ const continuationSummaries = new Map(
+ turns.flatMap(turn => {
+ const input = turn.created.input ?? [];
+ return input.some(item => item.type === 'user.message') ? [] : [[turn.turnId, getTurnInputSummary(turn)]];
+ }),
+ );
+
+ return items.map(item => {
+ if (item.event.type !== 'turn.created') return item;
+ const summary = continuationSummaries.get(item.turnId);
+ if (summary === undefined) return item;
+ const displayInput: UserMessageInput = { type: 'user.message', content: summary };
+ return {
+ ...item,
+ event: {
+ ...item.event,
+ input: [...(item.event.input ?? []), displayInput],
+ },
+ };
+ });
}
-function messagesForTurn(messages: ThreadMessageLike[], turnId: string): ThreadMessageLike[] {
- return messages.filter(message => turnIdFromMessage(message) === turnId);
+function appendTerminalText(content: ThreadMessageLike['content'], text: string): ThreadMessageLike['content'] {
+ const terminalPart: { type: 'text'; text: string } = { type: 'text', text };
+ return typeof content === 'string' ? [{ type: 'text', text: content }, terminalPart] : [...content, terminalPart];
+}
+
+function applyTerminalState(messages: ThreadMessageLike[], turn: SessionTurnView): ThreadMessageLike[] {
+ const state = turn.done?.state;
+ if (state?.status !== 'error' && state?.status !== 'cancelled') return messages;
+
+ // failures need an assistant row so the terminal state is visible.
+ const assistantIndex = messages.findIndex(message => message.role === 'assistant');
+ const assistant = assistantIndex < 0 ? undefined : messages[assistantIndex];
+ const terminal: ThreadMessageLike =
+ state.status === 'error'
+ ? {
+ ...(assistant ?? {
+ id: `${turn.turnId}-assistant`,
+ role: 'assistant',
+ content: [],
+ createdAt: new Date(turn.done?.createdAt ?? turn.created.createdAt),
+ metadata: { custom: { turnId: turn.turnId } },
+ }),
+ status: { type: 'incomplete', reason: 'error', error: state.message },
+ }
+ : {
+ ...(assistant ?? {
+ id: `${turn.turnId}-assistant`,
+ role: 'assistant',
+ content: [],
+ createdAt: new Date(turn.done?.createdAt ?? turn.created.createdAt),
+ metadata: { custom: { turnId: turn.turnId } },
+ }),
+ content: appendTerminalText(assistant?.content ?? [], `Cancelled: ${state.reason}`),
+ status: { type: 'incomplete', reason: 'cancelled' },
+ };
+
+ if (assistantIndex < 0) return [...messages, terminal];
+ return messages.map((message, index) => (index === assistantIndex ? terminal : message));
+}
+
+function messagesForTurn(messages: ThreadMessageLike[], turn: SessionTurnView): ThreadMessageLike[] {
+ const matched = messages.filter(message => turnIdFromMessage(message) === turn.turnId);
+ return applyTerminalState(matched, turn);
}
export type AgentSessionTimelineContainerProps = {
@@ -45,7 +107,7 @@ export type AgentSessionTimelineContainerProps = {
events: SessionEventItem[];
listMetrics?: {
totalTurns: number;
- totalCostInUsd: number;
+ totalCostInUsd?: number;
totalDurationMs: number;
};
};
@@ -63,6 +125,7 @@ export function AgentSessionTimelineContainer({ sessionId, events, listMetrics }
const sectionRefs = useRef(new Map<number, HTMLElement>());
const turnViews = useMemo(() => buildSessionTurnViews(events), [events]);
+ const projectionEvents = useMemo(() => buildProjectionEvents(events, turnViews), [events, turnViews]);
const timelineSegments = useMemo(() => buildSessionTimelineSegments(turnViews), [turnViews]);
const sessionMetrics = useMemo(
() => buildSessionMetrics({ turns: turnViews, segments: timelineSegments, listMetrics }),
@@ -78,7 +141,7 @@ export function AgentSessionTimelineContainer({ sessionId, events, listMetrics }
setMessages(undefined);
setLoadFailed(false);
- const bridge = createCachedListEventsBridge(events);
+ const bridge = createCachedListEventsBridge(projectionEvents, { allAtOnce: true });
// Events already include every turn.created / turn.done, so skip listTurns.
const chatServer: AgentChatServer = {
...server,
@@ -97,7 +160,7 @@ export function AgentSessionTimelineContainer({ sessionId, events, listMetrics }
return () => {
cancelled = true;
};
- }, [events, server, sessionId]);
+ }, [projectionEvents, server, sessionId]);
if (loadFailed) {
return (
@@ -137,7 +200,7 @@ export function AgentSessionTimelineContainer({ sessionId, events, listMetrics }
<SessionTurnSection
key={turn.turnId}
turn={turn}
- messages={messagesForTurn(messages, turn.turnId)}
+ messages={messagesForTurn(messages, turn)}
AgentSessionTurnHeader={AgentSessionTurnHeader}
onMount={node => {
if (node == null) sectionRefs.current.delete(turn.turnNumber - 1);
diff --git a/packages/trueforge-ui/src/icons/IconRegistry.tsx b/packages/trueforge-ui/src/icons/IconRegistry.tsx
index 1b8ffb029..be64b30e8 100644
--- a/packages/trueforge-ui/src/icons/IconRegistry.tsx
+++ b/packages/trueforge-ui/src/icons/IconRegistry.tsx
@@ -26,6 +26,7 @@ import {
ExternalLink,
File,
Github,
+ GripVertical,
History,
Info,
Lightbulb,
@@ -126,6 +127,7 @@ const defaults: Record<string, IconEntry> = {
calendar: Calendar,
'calendar-clock': CalendarClock,
'calendar-plus': CalendarPlus,
+ 'grip-vertical': GripVertical,
'square-pen': SquarePen,
'rotate-right': RotateCw,
broom: Broom,
diff --git a/packages/trueforge-ui/src/utils/buildSessionMetrics.ts b/packages/trueforge-ui/src/utils/buildSessionMetrics.ts
index cee6a3a80..6e9969516 100644
--- a/packages/trueforge-ui/src/utils/buildSessionMetrics.ts
+++ b/packages/trueforge-ui/src/utils/buildSessionMetrics.ts
@@ -11,7 +11,7 @@ export type SessionMetricBarDatum = {
export type SessionMetrics = {
totalTurns: number;
wallTimeMs: number;
- totalCostUsd: number;
+ totalCostUsd?: number;
totalTokens: number;
contextTokens: number;
toolCalls: number;
@@ -26,7 +26,7 @@ export type SessionMetrics = {
export type SessionListMetricsHint = {
totalTurns: number;
- totalCostInUsd: number;
+ totalCostInUsd?: number;
totalDurationMs: number;
};
@@ -37,6 +37,21 @@ function readNumber(record: Record<string, unknown>, camel: string, snake: strin
return typeof snakeValue === 'number' && Number.isFinite(snakeValue) ? snakeValue : 0;
}
+function readOptionalNumber({
+ record,
+ camel,
+ snake,
+}: {
+ record: Record<string, unknown>;
+ camel: string;
+ snake: string;
+}): number | undefined {
+ const camelValue = record[camel];
+ if (typeof camelValue === 'number' && Number.isFinite(camelValue)) return camelValue;
+ const snakeValue = record[snake];
+ return typeof snakeValue === 'number' && Number.isFinite(snakeValue) ? snakeValue : undefined;
+}
+
function metricsRecord(state: unknown): Record<string, unknown> | undefined {
if (!isRecord(state)) return undefined;
return isRecord(state.metrics) ? state.metrics : undefined;
@@ -47,7 +62,7 @@ function segmentDurationMs(segment: SessionEventTimelineSegment): number {
}
function hintHasValues(hint?: SessionListMetricsHint): boolean {
- return hint != null && (hint.totalTurns > 0 || hint.totalCostInUsd > 0 || hint.totalDurationMs > 0);
+ return hint != null && (hint.totalTurns > 0 || hint.totalCostInUsd != null || hint.totalDurationMs > 0);
}
export function buildSessionMetrics({
@@ -61,6 +76,7 @@ export function buildSessionMetrics({
}): SessionMetrics {
let derivedWallTimeMs = 0;
let derivedCostUsd = 0;
+ let hasDerivedCost = false;
let totalTokens = 0;
let totalUncachedInputTokens = 0;
let totalOutputTokens = 0;
@@ -86,15 +102,22 @@ export function buildSessionMetrics({
readNumber(metrics, 'totalCacheWriteTokens', 'total_cache_write_tokens');
const uncachedInputTokens = Math.max(0, inputTokens - cachedTokens);
const turnTotalTokens = readNumber(metrics, 'totalTokens', 'total_tokens') || inputTokens + outputTokens;
- const turnCostUsd = readNumber(metrics, 'totalCostInUsd', 'total_cost_in_usd');
+ const turnCostUsd = readOptionalNumber({
+ record: metrics,
+ camel: 'totalCostInUsd',
+ snake: 'total_cost_in_usd',
+ });
- derivedCostUsd += turnCostUsd;
+ if (turnCostUsd != null) {
+ derivedCostUsd += turnCostUsd;
+ hasDerivedCost = true;
+ }
totalTokens += turnTotalTokens;
totalUncachedInputTokens += uncachedInputTokens;
totalOutputTokens += outputTokens;
totalCachedTokens += cachedTokens;
contextTokens += turnTotalTokens;
- costPerTurn.push({ label, value: turnCostUsd, color: getSessionEventColor('tool_call') });
+ costPerTurn.push({ label, value: turnCostUsd ?? 0, color: getSessionEventColor('tool_call') });
contextByTurn.push({ label, value: contextTokens, color: getSessionEventColor('model') });
}
@@ -123,10 +146,12 @@ export function buildSessionMetrics({
color: getSessionEventColor('tool_call'),
})).sort((left, right) => right.value - left.value);
+ const totalCostUsd = listMetrics?.totalCostInUsd ?? (hasDerivedCost ? derivedCostUsd : undefined);
+
return {
totalTurns: hintHasValues(listMetrics) ? (listMetrics?.totalTurns ?? turns.length) : turns.length,
wallTimeMs,
- totalCostUsd: hintHasValues(listMetrics) ? (listMetrics?.totalCostInUsd ?? derivedCostUsd) : derivedCostUsd,
+ ...(totalCostUsd == null ? {} : { totalCostUsd }),
totalTokens,
contextTokens,
toolCalls: toolCallFrequency.reduce((sum, toolCall) => sum + toolCall.value, 0),
diff --git a/packages/trueforge-ui/src/utils/cachedListEventsBridge.ts b/packages/trueforge-ui/src/utils/cachedListEventsBridge.ts
index 1e1871827..1c6775e0a 100644
--- a/packages/trueforge-ui/src/utils/cachedListEventsBridge.ts
+++ b/packages/trueforge-ui/src/utils/cachedListEventsBridge.ts
@@ -3,15 +3,21 @@ import type { AgentChatServer, ListResult, SessionEventItem } from '../server/ty
const DEFAULT_PAGE_SIZE = 100;
/** Serve preloaded session events through `AgentChatServer.listEvents` pagination. */
-export function createCachedListEventsBridge(itemsAsc: SessionEventItem[]): Pick<AgentChatServer, 'listEvents'> {
+export function createCachedListEventsBridge(
+ itemsAsc: SessionEventItem[],
+ options?: { allAtOnce?: boolean },
+): Pick<AgentChatServer, 'listEvents'> {
const itemsNewestFirst = [...itemsAsc].reverse();
return {
async listEvents({ limit = DEFAULT_PAGE_SIZE, pageToken }) {
const offset = pageToken == null || pageToken.length === 0 ? 0 : Number.parseInt(pageToken, 10);
const start = Number.isFinite(offset) ? offset : 0;
- const data = itemsNewestFirst.slice(start, start + limit);
- const nextOffset = start + limit;
+ // Agent Details already fetched the complete history; one page prevents
+ // synthetic display boundaries from making the runtime stop before older turns.
+ const pageSize = options?.allAtOnce === true ? itemsNewestFirst.length : limit;
+ const data = itemsNewestFirst.slice(start, start + pageSize);
+ const nextOffset = start + pageSize;
const nextPageToken = nextOffset < itemsNewestFirst.length ? String(nextOffset) : undefined;
const page: ListResult<SessionEventItem> = { data };
return nextPageToken == null ? page : { ...page, nextPageToken };
diff --git a/packages/trueforge-ui/src/utils/sessionDisplayFormat.ts b/packages/trueforge-ui/src/utils/sessionDisplayFormat.ts
index 3a723324f..fbd60f728 100644
--- a/packages/trueforge-ui/src/utils/sessionDisplayFormat.ts
+++ b/packages/trueforge-ui/src/utils/sessionDisplayFormat.ts
@@ -27,8 +27,12 @@ export function formatDurationMs(durationMs: number): string {
export function formatSessionListMetrics(metrics: {
totalTurns: number;
- totalCostInUsd: number;
+ totalCostInUsd?: number;
totalDurationMs: number;
}): string {
- return `${metrics.totalTurns} turns | ${formatCostUsd(metrics.totalCostInUsd)} | ${formatDurationMs(metrics.totalDurationMs)}`;
+ return [
+ `${metrics.totalTurns} turns`,
+ ...(metrics.totalCostInUsd == null ? [] : [formatCostUsd(metrics.totalCostInUsd)]),
+ formatDurationMs(metrics.totalDurationMs),
+ ].join(' | ');
}
diff --git a/packages/trueforge-ui/src/utils/sessionEventTimelineChart.ts b/packages/trueforge-ui/src/utils/sessionEventTimelineChart.ts
index 88a4e738c..235c9ef5b 100644
--- a/packages/trueforge-ui/src/utils/sessionEventTimelineChart.ts
+++ b/packages/trueforge-ui/src/utils/sessionEventTimelineChart.ts
@@ -49,16 +49,24 @@ export type TimelineToolCallGroup = TimelineGap & {
segments: SessionEventTimelineSegment[];
};
+export type TimelineSubAgentGroup = TimelineGap & {
+ id: string;
+ barId: string;
+ segments: SessionEventTimelineSegment[];
+};
+
export const TIMELINE_TYPE = {
turn: 'turn',
event: 'event',
toolCallGroup: 'toolCallGroup',
+ subAgentGroup: 'subAgentGroup',
} as const;
export type TimelineHoverTarget =
| { type: typeof TIMELINE_TYPE.turn; bar: TimelineTurnBar }
| { type: typeof TIMELINE_TYPE.event; segment: SessionEventTimelineSegment }
- | { type: typeof TIMELINE_TYPE.toolCallGroup; group: TimelineToolCallGroup };
+ | { type: typeof TIMELINE_TYPE.toolCallGroup; group: TimelineToolCallGroup }
+ | { type: typeof TIMELINE_TYPE.subAgentGroup; group: TimelineSubAgentGroup };
/** Stable identity used to avoid replacing tooltip state while hovering the same bar. */
export function getTimelineHoverTargetId(target: TimelineHoverTarget | null): string {
@@ -161,6 +169,26 @@ export function groupOverlappingToolCalls(segments: SessionEventTimelineSegment[
return groups;
}
+// Each visible main-row bar owns a tooltip containing only runs that overlap it.
+// This avoids pulling in distant runs through a chain of transitive overlaps.
+export function getSubAgentHoverGroups({
+ bars,
+ subAgentSegments,
+}: {
+ bars: SessionEventTimelineSegment[];
+ subAgentSegments: SessionEventTimelineSegment[];
+}): TimelineSubAgentGroup[] {
+ return bars.map(bar => ({
+ id: `sub-agent-group-${bar.id}`,
+ barId: bar.id,
+ startMs: bar.startMs,
+ endMs: bar.endMs,
+ segments: subAgentSegments.filter(
+ segment => segment.turnIndex === bar.turnIndex && (segment.id === bar.id || segmentsOverlap(bar, segment)),
+ ),
+ }));
+}
+
/**
* Assign sub-agent tracks to the first reusable non-overlapping lane and attach
* each thread's child events to that track.
diff --git a/packages/trueforge-ui/test/atoms/AgentSessionEventTimelineChart.test.tsx b/packages/trueforge-ui/test/atoms/AgentSessionEventTimelineChart.test.tsx
new file mode 100644
index 000000000..9f4e2b235
--- /dev/null
+++ b/packages/trueforge-ui/test/atoms/AgentSessionEventTimelineChart.test.tsx
@@ -0,0 +1,134 @@
+// @vitest-environment jsdom
+import { act, fireEvent, render, screen, waitFor } from '@testing-library/react';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { AgentSessionEventTimelineChart } from '@/atoms/agent-details/AgentSessionEventTimelineChart.js';
+import { SessionSubAgentGroupTooltip } from '@/atoms/agent-details/AgentSessionTimelineTooltip.js';
+import type { SessionEventTimelineSegment } from '@/utils/sessionEventTimeline.js';
+import type { SessionTurnView } from '@/utils/sessionTurnViews.js';
+
+let capturedOptions: unknown;
+
+vi.mock('react-chartjs-2', () => ({
+ Bar: ({ options }: { options: unknown }) => {
+ capturedOptions = options;
+ return <canvas role="img" aria-label="Timeline chart" />;
+ },
+}));
+
+const turns: SessionTurnView[] = [
+ {
+ turnId: 'turn-1',
+ turnNumber: 1,
+ showHeader: true,
+ created: {
+ type: 'turn.created',
+ id: 'turn-1-created',
+ turnId: 'turn-1',
+ input: [{ type: 'user.message', content: 'hello' }],
+ state: { status: 'running' },
+ createdAt: '2026-01-01T00:00:00.000Z',
+ threadId: null,
+ },
+ events: [],
+ },
+];
+
+const segments: SessionEventTimelineSegment[] = [
+ {
+ id: 'turn-1-user',
+ type: 'user',
+ title: 'user.message',
+ description: 'hello',
+ startMs: 0,
+ endMs: 0,
+ turnIndex: 0,
+ threadId: 'main',
+ isMarker: true,
+ },
+ {
+ id: 'turn-1-model',
+ type: 'model',
+ title: 'model.message',
+ description: 'response',
+ startMs: 0,
+ endMs: 1_000,
+ turnIndex: 0,
+ threadId: 'main',
+ },
+];
+
+describe('AgentSessionEventTimelineChart', () => {
+ beforeEach(() => {
+ capturedOptions = undefined;
+ });
+
+ it('keeps an open tooltip anchored to live chart bounds while scrolling', async () => {
+ const { container } = render(
+ <AgentSessionEventTimelineChart turns={turns} segments={segments} hiddenTypes={new Set()} />,
+ );
+ const wrapper = container.querySelector<HTMLElement>('[data-slot="agent-session-event-timeline-chart"]');
+ const canvas = screen.getByRole('img', { name: 'Timeline chart' });
+ if (wrapper == null) throw new Error('Expected timeline chart wrapper');
+
+ let chartBottom = 120;
+ vi.spyOn(wrapper, 'getBoundingClientRect').mockImplementation(() => new DOMRect(0, 0, 600, chartBottom));
+ const onHover = Reflect.get(capturedOptions ?? {}, 'onHover');
+ if (typeof onHover !== 'function') throw new Error('Expected Chart.js onHover callback');
+
+ const native = new MouseEvent('mousemove', { clientX: 320 });
+ Object.defineProperty(native, 'target', { value: canvas });
+ act(() => onHover({ native }, [{ datasetIndex: 0 }]));
+
+ expect(await screen.findByRole('tooltip')).toHaveStyle({ left: '320px', top: '126px' });
+
+ chartBottom = 220;
+ act(() => window.dispatchEvent(new Event('scroll')));
+ await waitFor(() => {
+ expect(screen.getByRole('tooltip')).toHaveStyle({ left: '320px', top: '226px' });
+ });
+
+ fireEvent.mouseLeave(canvas);
+ expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
+ });
+
+ it('summarizes every sub-agent represented by a shared bar', () => {
+ render(
+ <SessionSubAgentGroupTooltip
+ group={{
+ id: 'sub-agent-group',
+ barId: 'researcher',
+ startMs: 1_000,
+ endMs: 6_000,
+ segments: [
+ {
+ id: 'researcher',
+ type: 'sub_agent',
+ title: 'thread.created',
+ description: 'Researcher',
+ startMs: 1_000,
+ endMs: 6_000,
+ turnIndex: 0,
+ threadId: 'researcher-thread',
+ },
+ {
+ id: 'writer',
+ type: 'sub_agent',
+ title: 'thread.created',
+ description: 'Writer',
+ startMs: 2_000,
+ endMs: 5_000,
+ turnIndex: 0,
+ threadId: 'writer-thread',
+ },
+ ],
+ }}
+ />,
+ );
+
+ expect(screen.getByText('Sub-agents')).toBeInTheDocument();
+ expect(screen.getByText('Sub-agent 1: Researcher')).toBeInTheDocument();
+ expect(screen.getByText('Sub-agent 2: Writer')).toBeInTheDocument();
+ expect(screen.getAllByText('5s')).not.toHaveLength(0);
+ });
+});
diff --git a/packages/trueforge-ui/test/atoms/AgentSessionMetricsStrip.test.tsx b/packages/trueforge-ui/test/atoms/AgentSessionMetricsStrip.test.tsx
index 569673dc5..844f7ac11 100644
--- a/packages/trueforge-ui/test/atoms/AgentSessionMetricsStrip.test.tsx
+++ b/packages/trueforge-ui/test/atoms/AgentSessionMetricsStrip.test.tsx
@@ -57,4 +57,12 @@ describe('AgentSessionMetricsStrip', () => {
);
expect(document.querySelector('[data-slot="session-metric-wall-time"]')).toHaveClass('w-full');
});
+
+ it('omits the cost tile when cost is unavailable', () => {
+ const { totalCostUsd, ...metricsWithoutCost } = metrics;
+ void totalCostUsd;
+
+ render(<AgentSessionMetricsStrip metrics={metricsWithoutCost} />);
+ expect(screen.queryByText('Cost')).not.toBeInTheDocument();
+ });
});
diff --git a/packages/trueforge-ui/test/atoms/SessionsPage.test.tsx b/packages/trueforge-ui/test/atoms/SessionsPage.test.tsx
index 9e5691217..302fbf676 100644
--- a/packages/trueforge-ui/test/atoms/SessionsPage.test.tsx
+++ b/packages/trueforge-ui/test/atoms/SessionsPage.test.tsx
@@ -81,7 +81,7 @@ describe('SessionsPage', () => {
expect(await screen.findByRole('heading', { name: 'Agent Sessions' })).toBeInTheDocument();
expect(await screen.findByText('Named session')).toBeInTheDocument();
expect(screen.getByText('Draft session')).toBeInTheDocument();
- expect(screen.getByText('Draft')).toBeInTheDocument();
+ expect(screen.queryByText('Draft')).not.toBeInTheDocument();
expect(listSessions).toHaveBeenCalledWith(
expect.objectContaining({
order: 'desc',
@@ -106,6 +106,7 @@ describe('SessionsPage', () => {
expect(Date.parse(request.endTimestamp) - Date.parse(request.startTimestamp)).toBe(DEFAULT_SESSION_TIME_WINDOW_MS);
expect(window.location.search).toContain('view=sessions');
expect(screen.getByRole('button', { name: 'Last 30 days' })).toBeInTheDocument();
+ expect(screen.getByRole('separator', { name: 'Resize session list' })).toHaveClass('w-0');
});
it('shows the custom range picker only after Custom Time Range is clicked', async () => {
@@ -158,6 +159,9 @@ describe('SessionsPage', () => {
// Pinning makes refresh/deep-link boot find the selected row, but must not
// replace the active list filter during this mounted interaction.
expect(mockedListSessions.mock.calls.every(([request]) => request === initialListRequest)).toBe(true);
+ const resizer = screen.getByRole('separator', { name: 'Resize session list' });
+ expect(resizer).toHaveClass('w-0');
+ expect(resizer.querySelector('.w-px')).toBeInTheDocument();
expect(screen.getByRole('heading', { name: 'Named session' })).toBeInTheDocument();
});
});
diff --git a/packages/trueforge-ui/test/atoms/primitives/Tooltip.test.tsx b/packages/trueforge-ui/test/atoms/primitives/Tooltip.test.tsx
index 0f34a14f6..5eda8814b 100644
--- a/packages/trueforge-ui/test/atoms/primitives/Tooltip.test.tsx
+++ b/packages/trueforge-ui/test/atoms/primitives/Tooltip.test.tsx
@@ -117,6 +117,42 @@ describe('Tooltip', () => {
expect(screen.getByRole('tooltip')).toHaveStyle({ left: '640px', top: '126px' });
});
+ it('supports controlled visibility independently of trigger hover', () => {
+ const { rerender } = render(
+ <Tooltip content="Pinned" open>
+ <button>Chart</button>
+ </Tooltip>,
+ );
+
+ const trigger = screen.getByRole('button', { name: 'Chart' });
+ expect(screen.getByRole('tooltip')).toHaveTextContent('Pinned');
+ fireEvent.mouseLeave(trigger);
+ expect(screen.getByRole('tooltip')).toBeInTheDocument();
+
+ rerender(
+ <Tooltip content="Pinned" open={false}>
+ <button>Chart</button>
+ </Tooltip>,
+ );
+ expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
+ });
+
+ it('repositions when a controlled anchor changes', () => {
+ const { rerender } = render(
+ <Tooltip content="Turn 1" side="bottom" anchor={{ left: 200, top: 100 }} open>
+ <button>Chart</button>
+ </Tooltip>,
+ );
+
+ expect(screen.getByRole('tooltip')).toHaveStyle({ left: '200px', top: '106px' });
+ rerender(
+ <Tooltip content="Turn 1" side="bottom" anchor={{ left: 240, top: 180 }} open>
+ <button>Chart</button>
+ </Tooltip>,
+ );
+ expect(screen.getByRole('tooltip')).toHaveStyle({ left: '240px', top: '186px' });
+ });
+
it('clamps a centered tooltip so it stays inside the viewport', () => {
expect(
clampCenteredTooltip({
diff --git a/packages/trueforge-ui/test/atoms/schedules/ScheduleFormDrawer.test.tsx b/packages/trueforge-ui/test/atoms/schedules/ScheduleFormDrawer.test.tsx
index b6257e6d8..fa4161ff3 100644
--- a/packages/trueforge-ui/test/atoms/schedules/ScheduleFormDrawer.test.tsx
+++ b/packages/trueforge-ui/test/atoms/schedules/ScheduleFormDrawer.test.tsx
@@ -147,6 +147,28 @@ describe('ScheduleFormDrawer', () => {
expect(await screen.findByLabelText('Agent')).toBeDisabled();
});
+ it('offers only standard recurrence modes and labels the preview as Frequency', async () => {
+ renderDrawer({});
+
+ expect(await screen.findByRole('button', { name: 'Hourly' })).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Daily' })).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Weekly' })).toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: 'Custom' })).not.toBeInTheDocument();
+ expect(screen.queryByLabelText('Cron expression')).not.toBeInTheDocument();
+ expect(screen.getByText('Frequency')).toBeInTheDocument();
+ });
+
+ it('keeps a legacy custom cron read-only until its recurrence is replaced', async () => {
+ renderDrawer({
+ mode: 'edit',
+ schedule: pausedSchedule({ cron: '0 9 1 * *' }),
+ });
+
+ expect(await screen.findByText('Existing custom schedule')).toBeInTheDocument();
+ expect(screen.getAllByText('0 9 1 * *')).not.toHaveLength(0);
+ expect(screen.queryByLabelText('Cron expression')).not.toBeInTheDocument();
+ });
+
it('creates a paused schedule, stays open on the test screen, and toasts', async () => {
const createSchedule = vi.fn(async () => pausedSchedule());
const onOpenChange = vi.fn();
diff --git a/packages/trueforge-ui/test/atoms/schedules/cadence.test.ts b/packages/trueforge-ui/test/atoms/schedules/cadence.test.ts
index 499461529..5ceda3fbd 100644
--- a/packages/trueforge-ui/test/atoms/schedules/cadence.test.ts
+++ b/packages/trueforge-ui/test/atoms/schedules/cadence.test.ts
@@ -1,6 +1,40 @@
-import { describe, expect, it } from 'vitest';
+import { afterEach, describe, expect, it, vi } from 'vitest';
-import { cronToFormValues, formatCadenceSummary } from '@/atoms/schedules/cadence.js';
+import {
+ cronToFormValues,
+ defaultScheduleFormValues,
+ formatCadenceSummary,
+ getTimezoneOptions,
+} from '@/atoms/schedules/cadence.js';
+
+afterEach(() => {
+ vi.restoreAllMocks();
+});
+
+describe('schedule timezone defaults', () => {
+ it('defaults to the browser timezone and offers an unlisted local zone', () => {
+ vi.spyOn(Intl.DateTimeFormat.prototype, 'resolvedOptions').mockReturnValue({
+ locale: 'en-US',
+ calendar: 'gregory',
+ numberingSystem: 'latn',
+ timeZone: 'Pacific/Auckland',
+ });
+
+ expect(defaultScheduleFormValues().timezone).toBe('Pacific/Auckland');
+ expect(getTimezoneOptions()).toContainEqual({
+ value: 'Pacific/Auckland',
+ label: 'Pacific/Auckland (Local)',
+ });
+ });
+
+ it('falls back to UTC when browser timezone detection fails', () => {
+ vi.spyOn(Intl.DateTimeFormat.prototype, 'resolvedOptions').mockImplementation(() => {
+ throw new Error('timezone unavailable');
+ });
+
+ expect(defaultScheduleFormValues().timezone).toBe('UTC');
+ });
+});
describe('formatCadenceSummary', () => {
it('formats supported hourly, daily, and weekly patterns', () => {
diff --git a/packages/trueforge-ui/test/containers/AgentSessionTimelineContainer.test.tsx b/packages/trueforge-ui/test/containers/AgentSessionTimelineContainer.test.tsx
index 7c9325944..080564737 100644
--- a/packages/trueforge-ui/test/containers/AgentSessionTimelineContainer.test.tsx
+++ b/packages/trueforge-ui/test/containers/AgentSessionTimelineContainer.test.tsx
@@ -1,5 +1,5 @@
// @vitest-environment jsdom
-import { fireEvent, render, screen, waitFor } from '@testing-library/react';
+import { fireEvent, render, screen, waitFor, within } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import { AgentSessionTimelineContainer } from '@/containers/AgentSessionTimelineContainer.js';
@@ -8,15 +8,7 @@ import type { SessionEventItem } from '@/server/types.js';
import { SlotsProvider } from '@/theme/SlotsProvider.js';
import { createMockAgentUIServer } from '../server/mockServer.js';
-vi.mock('@truefoundry/assistant-ui-runtime', async () => {
- const actual = await vi.importActual<typeof import('@truefoundry/assistant-ui-runtime')>(
- '@truefoundry/assistant-ui-runtime',
- );
- return {
- ...actual,
- convertTurnsToThreadMessages: vi.fn(async () => ({ messages: [] })),
- };
-});
+type TurnDoneEvent = Extract<SessionEventItem['event'], { type: 'turn.done' }>;
const events: SessionEventItem[] = [
{
@@ -44,6 +36,123 @@ const events: SessionEventItem[] = [
},
];
+const doneState: TurnDoneEvent['state'] = {
+ status: 'done',
+ completedAt: '2026-01-01T00:00:02.000Z',
+ output: null,
+ requiredActions: [],
+};
+
+const groupingEvents: SessionEventItem[] = [
+ {
+ turnId: 'turn-1',
+ event: {
+ type: 'turn.created',
+ id: 'turn-1-created',
+ turnId: 'turn-1',
+ previousTurnId: null,
+ input: [{ type: 'user.message', content: 'initial request' }],
+ state: { status: 'running' },
+ createdAt: '2026-01-01T00:00:00.000Z',
+ threadId: null,
+ },
+ },
+ {
+ turnId: 'turn-1',
+ event: {
+ type: 'model.message',
+ id: 'turn-1-model',
+ threadId: 'main',
+ content: 'turn one response',
+ createdAt: '2026-01-01T00:00:01.000Z',
+ },
+ },
+ {
+ turnId: 'turn-1',
+ event: { type: 'turn.done', id: 'turn-1-done', state: doneState, createdAt: doneState.completedAt },
+ },
+ {
+ turnId: 'turn-2',
+ event: {
+ type: 'turn.created',
+ id: 'turn-2-created',
+ turnId: 'turn-2',
+ previousTurnId: 'turn-1',
+ input: [{ type: 'user.tool_response', threadId: 'main', toolCallId: 'question-1', content: 'continue' }],
+ state: { status: 'running' },
+ createdAt: '2026-01-01T00:00:03.000Z',
+ threadId: null,
+ },
+ },
+ {
+ turnId: 'turn-2',
+ event: {
+ type: 'model.message',
+ id: 'turn-2-model',
+ threadId: 'main',
+ content: 'turn two response',
+ createdAt: '2026-01-01T00:00:04.000Z',
+ },
+ },
+ {
+ turnId: 'turn-2',
+ event: {
+ type: 'turn.done',
+ id: 'turn-2-done',
+ state: { ...doneState, completedAt: '2026-01-01T00:00:05.000Z' },
+ createdAt: '2026-01-01T00:00:05.000Z',
+ },
+ },
+ {
+ turnId: 'turn-3',
+ event: {
+ type: 'turn.created',
+ id: 'turn-3-created',
+ turnId: 'turn-3',
+ previousTurnId: 'turn-2',
+ input: [{ type: 'user.tool_response', threadId: 'main', toolCallId: 'question-2', content: 'stop' }],
+ state: { status: 'running' },
+ createdAt: '2026-01-01T00:00:06.000Z',
+ threadId: null,
+ },
+ },
+ {
+ turnId: 'turn-3',
+ event: {
+ type: 'turn.done',
+ id: 'turn-3-done',
+ state: {
+ status: 'cancelled',
+ reason: 'client-cancelled',
+ completedAt: '2026-01-01T00:00:07.000Z',
+ },
+ createdAt: '2026-01-01T00:00:07.000Z',
+ },
+ },
+ {
+ turnId: 'turn-4',
+ event: {
+ type: 'turn.created',
+ id: 'turn-4-created',
+ turnId: 'turn-4',
+ previousTurnId: 'turn-3',
+ input: [{ type: 'user.message', content: 'retry' }],
+ state: { status: 'running' },
+ createdAt: '2026-01-01T00:00:08.000Z',
+ threadId: null,
+ },
+ },
+ {
+ turnId: 'turn-4',
+ event: {
+ type: 'turn.done',
+ id: 'turn-4-done',
+ state: { status: 'error', message: 'model failed', completedAt: '2026-01-01T00:00:09.000Z' },
+ createdAt: '2026-01-01T00:00:09.000Z',
+ },
+ },
+];
+
describe('AgentSessionTimelineContainer', () => {
it('passes grouped turns to the timeline slot and scrolls on select', async () => {
const scrollIntoView = vi.fn();
@@ -74,4 +183,37 @@ describe('AgentSessionTimelineContainer', () => {
expect(scrollIntoView).toHaveBeenCalled();
});
});
+
+ it('keeps responses in their backend turns and renders terminal failures', async () => {
+ render(
+ <SlotsProvider
+ overrides={{
+ AgentSessionEventTimeline: () => null,
+ }}
+ >
+ <ServerProvider server={createMockAgentUIServer()}>
+ <AgentSessionTimelineContainer sessionId="sess-1" events={groupingEvents} />
+ </ServerProvider>
+ </SlotsProvider>,
+ );
+
+ const turn1 = (await screen.findByText('Turn 1')).closest('section');
+ const turn2 = screen.getByText('Turn 2').closest('section');
+ const turn3 = screen.getByText('Turn 3').closest('section');
+ const turn4 = screen.getByText('Turn 4').closest('section');
+
+ expect(turn1).not.toBeNull();
+ expect(turn2).not.toBeNull();
+ expect(turn3).not.toBeNull();
+ expect(turn4).not.toBeNull();
+ if (turn1 == null || turn2 == null || turn3 == null || turn4 == null) {
+ throw new Error('Expected every backend turn to render a section');
+ }
+ expect(within(turn1).getByText('turn one response')).toBeInTheDocument();
+ expect(within(turn1).queryByText('turn two response')).not.toBeInTheDocument();
+ expect(within(turn2).getByText('continue')).toBeInTheDocument();
+ expect(within(turn2).getByText('turn two response')).toBeInTheDocument();
+ expect(within(turn3).getByText('Cancelled: client-cancelled')).toBeInTheDocument();
+ expect(within(turn4).getByText('model failed')).toBeInTheDocument();
+ });
});
diff --git a/packages/trueforge-ui/test/utils/sessionAgentDetails.test.ts b/packages/trueforge-ui/test/utils/sessionAgentDetails.test.ts
index 83bd2faf4..b40475250 100644
--- a/packages/trueforge-ui/test/utils/sessionAgentDetails.test.ts
+++ b/packages/trueforge-ui/test/utils/sessionAgentDetails.test.ts
@@ -80,6 +80,7 @@ describe('sessionDisplayFormat', () => {
assert.equal(formatTokenCount(122_000), '122K');
assert.equal(formatCostUsd(1.4872), '$1.4872');
assert.equal(formatDurationMs(76_800), '1.28m');
+ assert.equal(formatSessionListMetrics({ totalTurns: 5, totalDurationMs: 41_380 }), '5 turns | 41.38s');
});
});
diff --git a/packages/trueforge-ui/test/utils/sessionEventTimeline.test.ts b/packages/trueforge-ui/test/utils/sessionEventTimeline.test.ts
index 039db30b6..ae8d52551 100644
--- a/packages/trueforge-ui/test/utils/sessionEventTimeline.test.ts
+++ b/packages/trueforge-ui/test/utils/sessionEventTimeline.test.ts
@@ -9,6 +9,7 @@ import {
buildTimelineAxisTicks,
compressInterTurnGaps,
getActiveTimelineMs,
+ getSubAgentHoverGroups,
getSubAgentLanes,
groupOverlappingToolCalls,
pickLongestNonOverlappingSegments,
@@ -190,6 +191,40 @@ describe('sessionEventTimelineChart helpers', () => {
);
});
+ it('scopes each sub-agent tooltip to runs directly overlapping its visible bar', () => {
+ const subAgents = bars([
+ [0, 10, 0],
+ [9, 11, 0],
+ [10.5, 20, 0],
+ ]).map((segment, index): SessionEventTimelineSegment => ({
+ ...segment,
+ type: 'sub_agent',
+ threadId: `child-${index}`,
+ }));
+ const visibleBars = pickLongestNonOverlappingSegments(subAgents);
+ const groups = getSubAgentHoverGroups({
+ bars: visibleBars,
+ subAgentSegments: subAgents,
+ });
+
+ assert.deepEqual(
+ visibleBars.map(segment => segment.id),
+ ['s0', 's2'],
+ );
+ assert.deepEqual(
+ groups.map(group => ({
+ barId: group.barId,
+ startMs: group.startMs,
+ endMs: group.endMs,
+ segments: group.segments.map(segment => segment.id),
+ })),
+ [
+ { barId: 's0', startMs: 0, endMs: 10, segments: ['s0', 's1'] },
+ { barId: 's2', startMs: 10.5, endMs: 20, segments: ['s1', 's2'] },
+ ],
+ );
+ });
+
it('assigns non-overlapping sub-agent lanes', () => {
const lanes = getSubAgentLanes({
subAgentSegments: [
@@ -327,4 +362,36 @@ describe('buildSessionMetrics', () => {
assert.equal(metrics.tokenBreakdown.find(item => item.label === 'input')?.value, 50);
assert.equal(metrics.errors, 0);
});
+
+ it('keeps aggregate cost undefined when no turn reports cost', () => {
+ const turns = buildSessionTurnViews([
+ created({ turnId: 't1', createdAt: '2026-01-01T00:00:00.000Z' }),
+ {
+ turnId: 't1',
+ event: {
+ type: 'turn.done',
+ id: 't1-done',
+ state: {
+ status: 'done',
+ completedAt: '2026-01-01T00:00:02.000Z',
+ output: null,
+ requiredActions: [],
+ metrics: {
+ totalTokens: 80,
+ totalInputTokens: 50,
+ totalOutputTokens: 30,
+ totalCacheReadTokens: 0,
+ totalCacheWriteTokens: 0,
+ totalReasoningTokens: 0,
+ },
+ },
+ createdAt: '2026-01-01T00:00:02.000Z',
+ threadId: null,
+ },
+ },
+ ]);
+
+ const metrics = buildSessionMetrics({ turns, segments: buildSessionTimelineSegments(turns) });
+ assert.equal(metrics.totalCostUsd, undefined);
+ });
});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9089726f3..ded644503 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -383,6 +383,9 @@ importers:
react-markdown:
specifier: ^10.1.0
+ react-resizable-panels:
+ specifier: ^4.12.3
react-router-dom:
specifier: ^6 || ^7
@@ -6468,6 +6471,12 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-GHMJWnDXui/3RX4bT+cgBP+N3N2nkwcoZATr/2xLFpqQQe7TlBrE0cGM0dUa9ceT7A90tUrSRsiqgRG+g0/2AA==}
+ peerDependencies:
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+
resolution: {integrity: sha512-AIKJ/jgGlFb3EbfCXk5Gzshiwt+l3mqbCrNjmEWMMjqQxNJ3svBa6bgzFyCC2Sw3RA0VWF1kg3uQf2OFhxb8hw==}
engines: {node: '>=20.0.0'}
@@ -14280,6 +14289,11 @@ snapshots:
optionalDependencies:
'@types/react': 19.2.18
+ dependencies:
+ react: 19.2.8
+ react-dom: 19.2.8([email protected])
+
dependencies:
react: 19.2.8