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

Method activeContextSize

internal/tui/model.go:317–325  ·  view source on GitHub ↗

activeContextSize returns the context window the packer should aim at: the live server-reported value for the active profile if known, else the on-disk ContextSize, else defaultPackFallback, so cloud profiles before their first response (and any missing/zero value) still get a sensible budget.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

NewFunction · 0.95
buildMessagesMethod · 0.95
applyDoneMethod · 0.95

Calls 1

ActiveProfileMethod · 0.80

Tested by 1