markLost method
Records that the active transport was lost mid-use.
Called by the provider when a completion fails with LlmErrorKind.unreachable — the one error kind that means "the backend is gone" rather than "this request failed". The gate closes and exactly one notice is emitted, so the next thousand keystrokes see a disabled button and no further noise.
Implementation
void markLost(LlmTransportException error) {
if (_active == null) return;
final id = _active!.id;
_active = null;
_unavailableKind = AgentSdkUnavailableKind.unreachable;
_installable = null;
_report({id: error.message});
}