Fix monitoring CI regressions

This commit is contained in:
Hyu
2026-07-02 17:22:33 +08:00
parent 0ce382fc8b
commit f85278f98b
9 changed files with 75 additions and 24 deletions
@@ -534,13 +534,15 @@ const BotSessionMonitor = forwardRef<
message,
}),
);
const toolItems: SessionTimelineItem[] = toolCalls.map((toolCall, index) => ({
id: `tool-${toolCall.id}`,
type: 'tool',
timestamp: parseTimestamp(toolCall.timestamp).getTime(),
order: index * 2 + 1,
toolCall,
}));
const toolItems: SessionTimelineItem[] = toolCalls.map(
(toolCall, index) => ({
id: `tool-${toolCall.id}`,
type: 'tool',
timestamp: parseTimestamp(toolCall.timestamp).getTime(),
order: index * 2 + 1,
toolCall,
}),
);
return [...messageItems, ...toolItems].sort(
(a, b) => a.timestamp - b.timestamp || a.order - b.order,
@@ -813,9 +815,7 @@ const BotSessionMonitor = forwardRef<
)}
</div>
<pre className="whitespace-pre-wrap break-words rounded bg-background/80 p-2 font-mono text-[11px] leading-4 text-muted-foreground">
{truncateToolDetail(
call.arguments,
)}
{truncateToolDetail(call.arguments)}
</pre>
</div>
)}
@@ -398,17 +398,15 @@ export default function DynamicFormItemComponent({
</SelectTrigger>
<SelectContent>
<SelectGroup>
{config.options
?.filter(hasUsableOptionName)
.map((option) => (
<SelectItem
key={option.name}
value={option.name}
description={option.name}
>
{extractI18nObject(option.label)}
</SelectItem>
))}
{config.options?.filter(hasUsableOptionName).map((option) => (
<SelectItem
key={option.name}
value={option.name}
description={option.name}
>
{extractI18nObject(option.label)}
</SelectItem>
))}
</SelectGroup>
</SelectContent>
</Select>
@@ -1361,9 +1359,7 @@ export default function DynamicFormItemComponent({
{engineName}
</div>
{kbs.map((base) => {
const isSelected = tempSelectedKBIds.includes(
base.uuid,
);
const isSelected = tempSelectedKBIds.includes(base.uuid);
return (
<div
key={base.uuid}