* Check if a message is assistant text that should break a group.
(msg: RenderableMessage)
| 356 | * Check if a message is assistant text that should break a group. |
| 357 | */ |
| 358 | function isTextBreaker(msg: RenderableMessage): boolean { |
| 359 | if (msg.type === 'assistant') { |
| 360 | const content = msg.message.content[0] |
| 361 | if (content?.type === 'text' && content.text.trim().length > 0) { |
| 362 | return true |
| 363 | } |
| 364 | } |
| 365 | return false |
| 366 | } |
| 367 | |
| 368 | /** |
| 369 | * Check if a message is a non-collapsible tool use that should break a group. |
no outgoing calls
no test coverage detected