MCPcopy Create free account
hub / github.com/WJX20/claude-code / isMessageStreaming

Function isMessageStreaming

src/components/MessageRow.tsx:299–312  ·  view source on GitHub ↗
(msg: RenderableMessage, streamingToolUseIDs: Set<string>)

Source from the content-addressed store, hash-verified

297 return c.type === "text";
298}
299export function isMessageStreaming(msg: RenderableMessage, streamingToolUseIDs: Set<string>): boolean {
300 if (msg.type === 'grouped_tool_use') {
301 return msg.messages.some(m => {
302 const content = (m.message.content as ContentBlockLike[])[0];
303 return content?.type === 'tool_use' && streamingToolUseIDs.has(content.id!);
304 });
305 }
306 if (msg.type === 'collapsed_read_search') {
307 const toolIds = getToolUseIdsFromCollapsedGroup(msg);
308 return toolIds.some(id => streamingToolUseIDs.has(id));
309 }
310 const toolUseID = getToolUseID(msg);
311 return !!toolUseID && streamingToolUseIDs.has(toolUseID);
312}
313
314/**
315 * Checks if all tools in a message are resolved.

Callers 1

areMessageRowPropsEqualFunction · 0.85

Calls 3

getToolUseIDFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected