mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-10 03:30:59 +00:00
style(web): show errored tool calls with red Error label, not red pill
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7f659df9ac
commit
858caf7434
1 changed files with 5 additions and 3 deletions
|
|
@ -231,9 +231,6 @@ function turnLabel(turn: TurnType): string {
|
|||
}
|
||||
|
||||
function turnTone(turn: TurnType): string {
|
||||
if (turn.kind === "tool" && turn.isError) {
|
||||
return "bg-coral/15 text-coral";
|
||||
}
|
||||
switch (turn.kind) {
|
||||
case "system":
|
||||
return "bg-amber/15 text-amber";
|
||||
|
|
@ -421,6 +418,11 @@ function EventRow({
|
|||
{turnSummary(turn)}
|
||||
</span>
|
||||
<span className="inline-flex items-center justify-end gap-1.5 font-mono text-xs tabular-nums text-fg-muted">
|
||||
{turn.kind === "tool" && turn.isError && (
|
||||
<span className="rounded bg-coral/15 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wider text-coral">
|
||||
Error
|
||||
</span>
|
||||
)}
|
||||
{MetricIcon && <MetricIcon className="size-3" aria-hidden="true" />}
|
||||
{metric ?? ""}
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue