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

Method applyDone

internal/tui/model.go:785–828  ·  view source on GitHub ↗

applyDone closes one LLM round: harvest the live context window, accumulate turn/session tokens, append the assistant message, flush streaming. A turn with tool calls fires one EventDone per round; counters accumulate so the banner reflects the whole turn. Tokens==0 means the backend skipped include

(e llm.Event)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

handleStreamMethod · 0.95
TestCtxPressureTripwireFunction · 0.80

Calls 6

activeContextSizeMethod · 0.95
flushStreamingMethod · 0.95
dbgWritefFunction · 0.85
dbgWriteMessageFunction · 0.85
StringMethod · 0.80
ResetMethod · 0.80

Tested by 1

TestCtxPressureTripwireFunction · 0.64