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.
| 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. |
| 27 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected