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

Function isOpenThinkingBlock

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

Source from the content-addressed store, hash-verified

96 * Check if a text block represents an open (unclosed) thinking block.
97 */
98const isOpenThinkingBlock = (block: ContentBlock | undefined): boolean => {
99 if (!block || block.type !== 'text') {
100 return false
101 }
102 return block.textType === 'reasoning' && block.thinkingOpen === true
103}
104
105/**
106 * Creates a new reasoning (thinking) text block.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected