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

Function isHumanTurn

src/utils/messagePredicates.ts:6–8  ·  view source on GitHub ↗
(m: Message)

Source from the content-addressed store, hash-verified

4// is the optional toolUseResult field. Four PRs (#23977, #24016, #24022,
5// #24025) independently fixed miscounts from checking type==='user' alone.
6export function isHumanTurn(m: Message): m is UserMessage {
7 return m.type === 'user' && !m.isMeta && m.toolUseResult === undefined
8}
9

Callers 3

REPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected