This commit is contained in:
Christian Gunderman
2026-04-13 19:44:05 -07:00
parent 44d8db20c8
commit 6621bd88c8
9 changed files with 119 additions and 69 deletions
@@ -6,6 +6,12 @@ Narrow Container
"
`;
exports[`<SectionHeader /> > 'renders correctly in a narrow contain…' 2`] = `
"─────────────────────────
Narrow Container
"
`;
exports[`<SectionHeader /> > 'renders correctly when title is trunc…' 1`] = `
"────────────────────
Very Long Header Ti…
+4 -1
View File
@@ -42,7 +42,10 @@ export function mapToDisplay(
if (call.status === CoreToolCallStatus.Error) {
description = JSON.stringify(call.request.args);
} else {
description = typeof call.invocation.getDisplayTitle === 'function' ? call.invocation.getDisplayTitle() : call.invocation.getDescription();
description =
typeof call.invocation.getDisplayTitle === 'function'
? call.invocation.getDisplayTitle()
: call.invocation.getDescription();
renderOutputAsMarkdown = call.tool.isOutputMarkdown;
}