MCPcopy Index your code
hub / github.com/anomalyco/opencode / hasChildren

Function hasChildren

packages/session-ui/src/components/basic-tool.tsx:91–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 const ready = () => state.ready
90 const pending = () => props.status === "pending" || props.status === "running"
91 const hasChildren = () => (props.defer ? "children" in props : props.children)
92 const dynamicTrigger = typeof props.trigger === "function" ? props.trigger(open) : undefined
93
94 let cancelReady: (() => void) | undefined

Callers 3

triggerFunction · 0.85
BasicToolFunction · 0.85
BasicToolV2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected