* Check if a message is assistant text that should break a group.
(msg: RenderableMessage)
| 329 | * Check if a message is assistant text that should break a group. |
| 330 | */ |
| 331 | function isTextBreaker(msg: RenderableMessage): boolean { |
| 332 | if (msg.type === 'assistant') { |
| 333 | const content = msg.message.content[0] |
| 334 | if (content?.type === 'text' && content.text.trim().length > 0) { |
| 335 | return true |
| 336 | } |
| 337 | } |
| 338 | return false |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * Check if a message is a non-collapsible tool use that should break a group. |
no outgoing calls
no test coverage detected