fix(desktop): surface provider onboarding from session warnings

Propagate credential warnings through session runtime info and open desktop onboarding whenever a session reports no usable provider, so unconfigured installs cannot fall through to prompt errors.
This commit is contained in:
Brooklyn Nicholson
2026-05-07 22:44:55 -04:00
parent 8d95e006b8
commit c730a9976d
5 changed files with 16 additions and 3 deletions
+3 -3
View File
@@ -583,9 +583,6 @@ def _start_agent_build(sid: str, session: dict) -> None:
_notify_session_boundary("on_session_reset", key)
info = _session_info(agent, current)
warn = _probe_credentials(agent)
if warn:
info["credential_warning"] = warn
cfg_warn = _probe_config_health(_load_cfg())
if cfg_warn:
info["config_warning"] = cfg_warn
@@ -1513,6 +1510,9 @@ def _session_info(agent, session: dict | None = None) -> dict:
info["update_command"] = recommended_update_command()
except Exception:
pass
warn = _probe_credentials(agent)
if warn:
info["credential_warning"] = warn
return info