MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isThinkingMessage

Function isThinkingMessage

src/utils/messages.ts:4679–4685  ·  view source on GitHub ↗
(message: Message)

Source from the content-addressed store, hash-verified

4677}
4678
4679export function isThinkingMessage(message: Message): boolean {
4680 if (message.type !== 'assistant') return false
4681 if (!Array.isArray(message.message.content)) return false
4682 return message.message.content.every(
4683 block => block.type === 'thinking' || block.type === 'redacted_thinking',
4684 )
4685}
4686
4687/**
4688 * Count total calls to a specific tool in message history

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected