Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

fix: trace log detail view now respects newlines in span content (#1273)

Willow Lopez015d98010a91
diff --git a/src/client/src/components/(playground)/observability/log-detail-page.tsx b/src/client/src/components/(playground)/observability/log-detail-page.tsx
index cb7d2f40..15f99051 100644
--- a/src/client/src/components/(playground)/observability/log-detail-page.tsx
+++ b/src/client/src/components/(playground)/observability/log-detail-page.tsx
@@ -71,7 +71,7 @@ function ContextPill({ label, value }: { label: string; value?: unknown }) {
{label}
</div>
<div
- className="max-w-64 truncate font-mono text-xs text-stone-900 dark:text-stone-100"
+ className="max-w-64 whitespace-pre-wrap break-words font-mono text-xs text-stone-900 dark:text-stone-100"
title={displayValue}
>
{displayValue}
diff --git a/src/client/src/components/(playground)/request/components/trace-improvement-view.tsx b/src/client/src/components/(playground)/request/components/trace-improvement-view.tsx
index 1fe9880c..c92d5774 100644
--- a/src/client/src/components/(playground)/request/components/trace-improvement-view.tsx
+++ b/src/client/src/components/(playground)/request/components/trace-improvement-view.tsx
@@ -201,7 +201,7 @@ function MarkdownText({ content }: { content: string }) {
<ReactMarkdown
components={{
p({ children }) {
- return <p className="my-1.5 text-sm leading-relaxed text-stone-800 dark:text-stone-100">{children}</p>;
+ return <p className="my-1.5 text-sm leading-relaxed text-stone-800 dark:text-stone-100 whitespace-pre-wrap">{children}</p>;
},
ul({ children }) {
return <ul className="my-1.5 list-disc space-y-1 pl-5 text-sm text-stone-800 dark:text-stone-100">{children}</ul>;