MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isTextBreaker

Function isTextBreaker

src/utils/collapseReadSearch.ts:331–339  ·  view source on GitHub ↗

* Check if a message is assistant text that should break a group.

(msg: RenderableMessage)

Source from the content-addressed store, hash-verified

329 * Check if a message is assistant text that should break a group.
330 */
331function 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.

Callers 1

collapseReadSearchGroupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected