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

Function dbgWriteRequest

internal/tui/debuglog.go:119–146  ·  view source on GitHub ↗

dbgWriteRequest records, per LLM round, what newest-first packing actually sent: how much of history survived the budget and how many tool outputs are truncated. The message bodies are already captured as user/assistant/ tool_result records, so this logs only the packing decisions those per-message

(model string, ctxSize, budget, historyLen int, packed []chmctx.Message)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

buildMessagesMethod · 0.85

Calls 3

dbgEnabledFunction · 0.85
dbgWritefFunction · 0.85
TokensMethod · 0.80

Tested by

no test coverage detected