fix(hermes_cli): keep TTS/setup xAI OAuth from switching active chat provider

Save side-tool OAuth tokens without promoting xai-oauth via active_provider
or model.provider so hermes setup tts login no longer hijacks inference routing.
This commit is contained in:
Fangliquan 2026-07-25 20:41:57 +08:00 committed by Teknium
parent a54067a6fd
commit fce06e909d
5 changed files with 134 additions and 6 deletions

View file

@ -11153,6 +11153,9 @@ def _xai_device_poller(session_id: str) -> None:
discovery=discovery,
last_refresh=datetime.now(timezone.utc).isoformat().replace("+00:00", "Z"),
auth_mode="oauth_device_code",
# Dashboard OAuth only bootstraps credentials for side tools;
# do not hijack the active chat inference provider.
set_active=False,
)
# The singleton write above is the single source of truth: the
# credential-pool load seeds it as the canonical ``device_code``