Skip to content

The agent that grows with you

chore: merge origin/main (resolve website/docs/user-guide/features/fallback-providers.md)

teknium14171ad59673c
diff --cc tui_gateway/prompt_turn.py
index 748692f700c,103b79937e9..a201e28a8d7
--- a/tui_gateway/prompt_turn.py
+++ b/tui_gateway/prompt_turn.py
@@@ -519,8 -565,8 +565,9 @@@ def _prepare_turn_input(sid: str, sessi
_apply_pending_model_switch(sid, session)
_sync_agent_model_with_config(sid, session)
_sync_agent_compression_with_config(sid, session)
+ _sync_agent_fallback_with_config(sid, session) # chain added after the chat opened reaches this turn
_sync_bot_capabilities(sid, session) # Bot Chat: adopt Settings->Capabilities edits
+ _adopt_out_of_band_turns(session)
st.agent = agent = session["agent"]
# Snapshot after the model sync: a deferred switch's history mutation belongs to this turn.
with session["history_lock"]:
diff --cc website/docs/user-guide/features/fallback-providers.md
index f1741b77d7a,464cdf65b13..7dabb0b02e0
--- a/website/docs/user-guide/features/fallback-providers.md
+++ b/website/docs/user-guide/features/fallback-providers.md
@@@ -186,9 -186,8 +186,9 @@@ fallback_providers
| Context | Fallback Supported |
|---------|-------------------|
- | CLI sessions | ✔ (a chain added or edited while a chat is open applies from its next turn) |
-| CLI sessions (interactive and `hermes -z` one-shot) | ✔ (at startup when the primary's credentials/quota fail, and mid-session) |
++| CLI sessions (interactive and `hermes -z` one-shot) | ✔ (at startup when the primary's credentials/quota fail, mid-session, and a chain added or edited while a chat is open applies from its next turn) |
| Messaging gateway (Telegram, Discord, etc.) | ✔ |
+| Desktop app / TUI chats | ✔ (a chain added or edited while a chat is open applies from its next turn) |
| Subagent delegation | ✔ (`delegation.fallback_providers` when set; otherwise only unpinned children inherit the parent chain; `[]` disables) |
| Cron jobs | ✔ (cron agents inherit configured fallback providers) |
| Auxiliary tasks on `provider: auto` | ✔ (try per-task fallback, then the main fallback chain before built-in aux discovery) |