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

Struct pingMsg

internal/tui/model.go:350–353  ·  view source on GitHub ↗

pingMsg carries a backend-reachability result. baseURL is the URL probed; Update drops the message when it no longer matches the live client's URL, else a stale ping from the prior profile (a mid-flight /models switch) would overwrite connected state with the wrong endpoint's reachability.

Source from the content-addressed store, hash-verified

348 // off (the default) means New behaves exactly as before.
349 if dbgEnabled() {
350 dbgWriteSession(version, cfg.Active, cfg.ActiveProfile().LLM, cfg.ActiveURL(),
351 m.activeContextSize(), chmctx.Tokens(m.system),
352 []string{tools.BashName, tools.ReadFileName, tools.WriteFileName, tools.EditFileName})
353 }
354 // Seed prompt history from .codehamr/history so ↑ recalls prompts from
355 // earlier sessions. Loaded entries carry no chip metadata (the on-disk
356 // format stores expanded text only), so a recalled multi-line paste

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected