MCPcopy Create free account
hub / github.com/codehamr/codehamr / handleStream

Method handleStream

internal/tui/model.go:714–751  ·  view source on GitHub ↗

handleStream dispatches one llm.Event to the matching apply* helper and re-arms the stream reader; EventError unwinds the turn instead of looping. Events arriving after cancellation are drained quietly; acting on them would corrupt scroll (EventContent), re-populate pending (EventToolCall), or credi

(e llm.Event)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 7

applyContentMethod · 0.95
applyToolCallMethod · 0.95
applyDoneMethod · 0.95
applyErrorMethod · 0.95
readEventFunction · 0.85
dbgEnabledFunction · 0.85
activeMethod · 0.80