Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(io-ui): don't show tool call "no response" text (#17701)

marliessophiec78717965971
diff --git a/web/src/features/traces/components/ToolCallInvocationsView.tsx b/web/src/features/traces/components/ToolCallInvocationsView.tsx
index 3955fc2aa1..d9c923855d 100644
--- a/web/src/features/traces/components/ToolCallInvocationsView.tsx
+++ b/web/src/features/traces/components/ToolCallInvocationsView.tsx
@@ -109,7 +109,7 @@ export function ToolCallInvocationsView({
{/* Response view: paired tool result. Only the normalized-parser
projection sets `response`, so this section is beta-only by
data presence — legacy messages never carry the field. */}
- {toolCall.response !== undefined && (
+ {toolCall.response !== undefined && toolCall.response !== null && (
<div className="py-2 [&_.io-message-content]:px-0">
<div className="text-muted-foreground mb-1.5 text-xs font-bold">
Response
@@ -117,17 +117,11 @@ export function ToolCallInvocationsView({
<span className="text-dark-red ml-1">(error)</span>
)}
</div>
- {toolCall.response === null ? (
- <div className="text-muted-foreground text-xs">
- No response
- </div>
- ) : (
- <PrettyJsonView
- json={parseIfJsonString(toolCall.response.output)}
- currentView="pretty"
- codeClassName="text-xs"
- />
- )}
+ <PrettyJsonView
+ json={parseIfJsonString(toolCall.response.output)}
+ currentView="pretty"
+ codeClassName="text-xs"
+ />
</div>
)}
</div>