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

Function isTextBreaker

source code/utils/collapseReadSearch.ts:333–341  ·  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

331 * Check if a message is assistant text that should break a group.
332 */
333function isTextBreaker(msg: RenderableMessage): boolean {
334 if (msg.type === 'assistant') {
335 const content = msg.message.content[0]
336 if (content?.type === 'text' && content.text.trim().length > 0) {
337 return true
338 }
339 }
340 return false
341}
342
343/**
344 * 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