docs: fix stale parity claim in _BARE_BILLING_PROVIDERS comment

The set is no longer in parity with agent_init's fail-fast gate (which
still skips openrouter for a different reason: default route, not
unroutable). Say so instead of claiming parity.
This commit is contained in:
kshitij
2026-08-14 01:26:32 +05:30
parent 1c87772186
commit cdea8214cb
+9 -7
View File
@@ -3766,13 +3766,15 @@ def _resolve_startup_runtime() -> tuple[str, str | None]:
return model, None
# Bare billing buckets are not routable provider identities (kept in parity with the
# provider gate in agent_init). Restoring one as a session provider override breaks resume.
# ``openrouter`` is deliberately excluded — it is a fully routable provider with its own
# API key and base_url. Sessions that used OpenRouter store
# ``billing_provider="openrouter"``; dropping it forces resume to the current global
# model (e.g. a custom endpoint), which is the wrong provider for the stored model.
# See #57588.
# Bare billing buckets are not routable provider identities; restoring one as a
# session provider override breaks resume. (agent_init's fail-fast gate is a
# DIFFERENT set that also skips "openrouter" — there it means "default route,
# don't fail fast", not "unroutable".)
# ``openrouter`` is deliberately excluded here — it is a fully routable provider
# with its own API key and base_url. Sessions that used OpenRouter store
# ``billing_provider="openrouter"``; dropping it forces resume to the current
# global model (e.g. a custom endpoint), which is the wrong provider for the
# stored model. See #57588.
_BARE_BILLING_PROVIDERS = {"auto", "custom"}