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

Struct streamEventMsg

internal/tui/commands.go:19–22  ·  view source on GitHub ↗

streamEventMsg and streamClosedMsg tag their originating channel so the model can drop events from a stream the current turn no longer owns. After Ctrl+C → fresh submit, the prior turn's readEvent Cmd is still scheduled; without the tag its tokens leak into the new turn, or its close runs endTurn ag

Source from the content-addressed store, hash-verified

17// fresh submit, the prior turn's readEvent Cmd is still scheduled; without the
18// tag its tokens leak into the new turn, or its close runs endTurn against it.
19type streamEventMsg struct {
20 ch <-chan llm.Event
21 e llm.Event
22}
23
24type streamClosedMsg struct {
25 ch <-chan llm.Event

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected