File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,6 +248,11 @@ export function Messages({ items, isThinking }: MessagesProps) {
248248 : cleanTitle || "Reasoning" ;
249249 const reasoningTone : StatusTone = summaryText ? "completed" : "processing" ;
250250 const isExpanded = expandedItems . has ( item . id ) ;
251+ const normalizedSummaryText = summaryText . trim ( ) ;
252+ const shouldHideReasoningBody =
253+ ! normalizedSummaryText ||
254+ normalizedSummaryText === summaryTitle ||
255+ summaryLines . length <= 1 ;
251256 return (
252257 < div key = { item . id } className = "tool-inline reasoning-inline" >
253258 < button
@@ -270,7 +275,7 @@ export function Messages({ items, isThinking }: MessagesProps) {
270275 />
271276 < span className = "tool-inline-value" > { summaryTitle } </ span >
272277 </ button >
273- { summaryText && (
278+ { ! shouldHideReasoningBody && summaryText && (
274279 < Markdown
275280 value = { summaryText }
276281 className = { `reasoning-inline-detail markdown ${
You can’t perform that action at this time.
0 commit comments