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

Function isHumanTurn

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

Source from the content-addressed store, hash-verified

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

Callers 3

REPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected