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

Function isNativeReasoningBlock

cli/src/utils/block-operations.ts:329–334  ·  view source on GitHub ↗
(block: ContentBlock | undefined)

Source from the content-addressed store, hash-verified

327 * Native reasoning blocks have textType === 'reasoning' but thinkingOpen === undefined.
328 */
329export const isNativeReasoningBlock = (block: ContentBlock | undefined): boolean => {
330 if (!block || block.type !== 'text') {
331 return false
332 }
333 return block.textType === 'reasoning' && block.thinkingOpen === undefined
334}
335
336/**
337 * Closes native reasoning blocks within a specific agent's blocks.

Calls

no outgoing calls

Tested by

no test coverage detected