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

Function isThinkingTextBlock

cli/src/utils/collapse-helpers.ts:20–22  ·  view source on GitHub ↗

* Checks if a block is a thinking text block (text with thinkingId). * These use thinkingCollapseState instead of isCollapsed.

(block: ContentBlock)

Source from the content-addressed store, hash-verified

18 * These use thinkingCollapseState instead of isCollapsed.
19 */
20function isThinkingTextBlock(block: ContentBlock): block is TextContentBlock {
21 return block.type === 'text' && 'thinkingId' in block && !!block.thinkingId
22}
23
24/**
25 * Checks if a content block is collapsible.

Callers 3

isBlockExpandedFunction · 0.85
getBlockCollapsedStateFunction · 0.85
createUpdatedBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected