Explorar el Código

chore: cleanup

Adam hace 8 meses
padre
commit
58ad4359da
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ui/src/components/session-turn.tsx

+ 1 - 1
packages/ui/src/components/session-turn.tsx

@@ -91,7 +91,7 @@ function partState(part: PartType, showReasoningSummaries: boolean) {
   }
   }
   if (part.type === "text") return part.text?.trim() ? ("visible" as const) : undefined
   if (part.type === "text") return part.text?.trim() ? ("visible" as const) : undefined
   if (part.type === "reasoning") {
   if (part.type === "reasoning") {
-    if (showReasoningSummaries) return "visible" as const
+    if (showReasoningSummaries && part.text?.trim()) return "visible" as const
     return
     return
   }
   }
   if (PART_MAPPING[part.type]) return "visible" as const
   if (PART_MAPPING[part.type]) return "visible" as const