You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closing as fixed on main. The env-var theory does not hold: the configured apiKey is passed to LiteLLM explicitly on every call (pinned by regression tests in #287, 5719cbe), and on current main a spawned sub-agent sends the key from config.json with OPENROUTER_API_KEY unset. The reported pattern, a sub-agent getting 401 while the main session works, most likely came from the subagent manager keeping its startup provider across a live model switch; #282 (a756a72) fixed that, and #284 (e26e0e1) now runs every spawn made during a turn on that turn's model binding. A direct chat with a built-in sub-agent instance (a later feature) still resolves the default model rather than the session's switch; that separate defect is tracked in #888. If the spawn 401 itself still reproduces on the latest release, please reopen with the model and provider config (key redacted).
Activity
feat(providers): endpoint failover and provider path close-out (#287)
feat(providers): endpoint failover and provider path close-out (EverM…
0xKT commentedon Oct 9, 2026
Closing as fixed on main. The env-var theory does not hold: the configured apiKey is passed to LiteLLM explicitly on every call (pinned by regression tests in #287, 5719cbe), and on current main a spawned sub-agent sends the key from config.json with OPENROUTER_API_KEY unset. The reported pattern, a sub-agent getting 401 while the main session works, most likely came from the subagent manager keeping its startup provider across a live model switch; #282 (a756a72) fixed that, and #284 (e26e0e1) now runs every spawn made during a turn on that turn's model binding. A direct chat with a built-in sub-agent instance (a later feature) still resolves the default model rather than the session's switch; that separate defect is tracked in #888. If the spawn 401 itself still reproduces on the latest release, please reopen with the model and provider config (key redacted).
fix(agent): resolve a direct chat's model binding through its session (…
fix(agent): resolve a direct chat's model binding through its session (…