MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / ensureStreaming

Function ensureStreaming

cli/src/utils/sdk-event-handlers.ts:113–119  ·  view source on GitHub ↗
(state: EventHandlerState)

Source from the content-addressed store, hash-verified

111 hiddenToolNames.has(toolName as ToolName | 'spawn_agent_inline')
112
113const ensureStreaming = (state: EventHandlerState) => {
114 if (!state.message.hasReceivedContentRef.current) {
115 state.message.hasReceivedContentRef.current = true
116 state.streaming.setStreamStatus('streaming')
117 state.setIsRetrying(false)
118 }
119}
120
121const appendRootChunk = (state: EventHandlerState, delta: TextDelta) => {
122 if (!delta.text) {

Callers 1

createStreamChunkHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected