MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / isThinkingMessage

Function isThinkingMessage

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

Source from the content-addressed store, hash-verified

5114}
5115
5116export function isThinkingMessage(message: Message): boolean {
5117 if (message.type !== 'assistant') return false
5118 if (!Array.isArray(message.message?.content)) return false
5119 return (message.message?.content as Array<{ type: string }>).every(
5120 block => block.type === 'thinking' || block.type === 'redacted_thinking',
5121 )
5122}
5123
5124/**
5125 * Count total calls to a specific tool in message history

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected