9477bb3677
## Summary - update AI chat message typography and list line-height for readability - apply richer markdown-section styling for headings, spacing, separators, and inline code - keep links non-underlined by default with underline on hover, using accent11 for link color - preserve previous AI chat table design while keeping other markdown improvements ## Validation - yarn eslint packages/twenty-front/src/modules/ai/components/LazyMarkdownRenderer.tsx packages/twenty-front/src/modules/ai/components/AIChatMessage.tsx --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
15 lines
405 B
TypeScript
15 lines
405 B
TypeScript
import { type ReasoningUIPart } from 'ai';
|
|
|
|
import { type ThinkingStepPart } from '@/ai/utils/thinkingStepPart';
|
|
|
|
export const getActiveReasoningContent = (
|
|
parts: ThinkingStepPart[],
|
|
): string | null => {
|
|
const activeReasoningPart = parts.find(
|
|
(part): part is ReasoningUIPart =>
|
|
part.type === 'reasoning' && part.state === 'streaming',
|
|
);
|
|
|
|
return activeReasoningPart?.text ?? null;
|
|
};
|