Skip to content

Commit 6d78a40

Browse files
authored
fix(agent-insights): Trim input and output messages (#94170)
- closes [TET-697: span details: Trim messages](https://linear.app/getsentry/issue/TET-697/span-details-trim-messages)
1 parent 0673dae commit 6d78a40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/app/views/performance/newTraceDetails/traceDrawer/details/span/eapSections/aiInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function renderTextMessages(content: any) {
2424
}
2525
return content
2626
.filter((part: any) => part.type === 'text')
27-
.map((part: any) => part.text)
27+
.map((part: any) => part.text.trim())
2828
.join('\n');
2929
}
3030

static/app/views/performance/newTraceDetails/traceDrawer/details/span/eapSections/aiOutput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function AIOutputSection({
6868
{t('Response')}
6969
</TraceDrawerComponents.MultilineTextLabel>
7070
<TraceDrawerComponents.MultilineText>
71-
{responseText}
71+
{responseText.trim()}
7272
</TraceDrawerComponents.MultilineText>
7373
</Fragment>
7474
)}

0 commit comments

Comments
 (0)