后台挂起

This commit is contained in:
fengxiangdebaozi committed 2026-06-04 20:00:58 +08:00
1 parent 788118ce3d
commit 19399482e1
21 files changed
+626 -50

No files matched your search

@@ -86,10 +86,15 @@ export function MessageStepsCard({
const display = getStepDisplay(lastReasoning.key, lastReasoning.label, lastReasoning.args);
const Icon = display.icon;
return (
<div className={cn("flex items-center gap-2 text-[calc(11.5px*var(--ui-font-scale,1))] text-slate-500 py-0.5", className)}>
<div
className={cn(
"roundtable-chat-message flex items-center gap-2 text-slate-500 py-0.5",
className,
)}
>
<Icon className="size-3.5 text-slate-400" />
<span>{display.label}</span>
<span className="text-[calc(10px*var(--ui-font-scale,1))] text-slate-400 font-mono">{lastReasoning.ts}</span>
<span className="roundtable-chat-meta text-slate-400 font-mono">{lastReasoning.ts}</span>
</div>
);
}
@@ -108,7 +113,7 @@ export function MessageStepsCard({
>
<ChainOfThoughtStep
label={
<span className="text-[calc(11.5px*var(--ui-font-scale,1))] opacity-60">
<span className="roundtable-chat-message opacity-60">
{showAbove ? "隐藏步骤" : `查看其他 ${priorToolSteps.length} 个步骤`}
</span>
}
@@ -189,9 +194,9 @@ function ToolStep({
: undefined
}
label={
<span className="text-[calc(12px*var(--ui-font-scale,1))] text-slate-700">
<span className="roundtable-chat-message text-slate-700">
<span className="font-medium">{display.label}</span>
<span className="ml-2 text-[calc(10px*var(--ui-font-scale,1))] text-slate-400 font-mono">{step.ts}</span>
<span className="roundtable-chat-meta ml-2 text-slate-400 font-mono">{step.ts}</span>
</span>
}
>
@@ -204,10 +209,10 @@ function ReasoningStep({ step, streaming }: { step: BubbleStep; streaming: boole
const display = getStepDisplay(step.key, step.label, step.args);
const Icon = display.icon;
return (
<div className="flex items-center gap-2 text-[calc(11.5px*var(--ui-font-scale,1))] text-slate-500">
<div className="roundtable-chat-message flex items-center gap-2 text-slate-500">
<Icon className={cn("size-3.5", streaming ? "text-primary animate-pulse" : "text-slate-400")} />
<span>{display.label}</span>
<span className="text-[calc(10px*var(--ui-font-scale,1))] text-slate-400 font-mono">{step.ts}</span>
<span className="roundtable-chat-meta text-slate-400 font-mono">{step.ts}</span>
</div>
);
}