feat(testing): add fixed tool simulations

This commit is contained in:
Xin Wang
2026-08-26 09:36:37 +08:00
parent 26582bfb87
commit 239b9027ca
16 changed files with 1525 additions and 237 deletions
@@ -36,11 +36,12 @@ import {
} from "@/components/ui/popover";
import { SearchInput } from "@/components/ui/search-input";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import type {
BatchEvaluationResult,
BatchRunCase,
BatchRunSnapshot,
BatchStartupResult,
import {
testExecutionErrorLabel,
type BatchEvaluationResult,
type BatchRunCase,
type BatchRunSnapshot,
type BatchStartupResult,
} from "@/data/batch-run";
import {
getTestCaseValidationMessage,
@@ -422,7 +423,7 @@ export function AutoTestLivePanel({
) {
return (
<ErrorPanel
title={state.runCase.executionError.code}
title={testExecutionErrorLabel(state.runCase.executionError.code)}
description={state.runCase.executionError.message}
/>
);
@@ -504,7 +505,7 @@ export function AutoTestLivePanel({
{state.phase === "error" && state.runCase?.executionError && (
<div className="rounded-xl border border-amber-500/25 bg-amber-500/[0.06] px-3 py-2.5 text-xs leading-5 text-amber-600 dark:text-amber-400">
<span className="font-medium">
{state.runCase.executionError.code}
{testExecutionErrorLabel(state.runCase.executionError.code)}
</span>
<span> · {state.runCase.executionError.message}</span>
</div>