MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / mergeStreamingSegments

Function mergeStreamingSegments

cli/src/utils/markdown-renderer.tsx:1040–1057  ·  view source on GitHub ↗
(segments: ReactNode[])

Source from the content-addressed store, hash-verified

1038}
1039
1040const mergeStreamingSegments = (segments: ReactNode[]): ReactNode => {
1041 if (segments.length === 0) {
1042 return ''
1043 }
1044 if (segments.length === 1) {
1045 return segments[0]
1046 }
1047
1048 return (
1049 <>
1050 {segments.map((segment, idx) => (
1051 <KeyedFragment key={`stream-segment-${idx}`}>
1052 {segment}
1053 </KeyedFragment>
1054 ))}
1055 </>
1056 )
1057}
1058
1059export function renderStreamingMarkdown(
1060 content: string,

Callers 1

renderStreamingMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected