From cdea8214cbbda51c64290d44d07558d5e4f589be Mon Sep 17 00:00:00 2001 From: kshitij <82637225+kshitijk4poor@users.noreply.github.com> Date: Fri, 14 Aug 2026 01:26:32 +0530 Subject: [PATCH] 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. --- tui_gateway/server.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tui_gateway/server.py b/tui_gateway/server.py index 33aaabd285..d5719a7d6a 100644 --- a/tui_gateway/server.py +++ b/tui_gateway/server.py @@ -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"}