(block: ContentBlock | undefined)
| 96 | * Check if a text block represents an open (unclosed) thinking block. |
| 97 | */ |
| 98 | const 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. |
no outgoing calls
no test coverage detected