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

Struct probeMsg

internal/tui/probe.go:23–29  ·  view source on GitHub ↗

probeMsg carries the outcome of an activation-time Probe (hello-world chat): validates URL+model+key in one round trip and harvests the live context window from response headers. profile is tagged explicitly so a late probe can't overwrite the wrong profile's window after a /models switch.

Source from the content-addressed store, hash-verified

21// window from response headers. profile is tagged explicitly so a late probe
22// can't overwrite the wrong profile's window after a /models switch; cli tags
23// the client instance the probe dialed with (mirroring pingMsg's baseURL tag),
24// because two probes for the SAME profile can be in flight at once (startup
25// probe + a /models or /hamrpass re-activation) and the profile name alone
26// can't tell the superseded one from the fresh one.
27type probeMsg struct {
28 profile string
29 cli *llm.Client
30 contextWindow int
31 budget cloud.BudgetStatus
32 silent bool // suppress the "✓ active" line; startup probe only

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected