Files
DeepTutor/deeptutor/agents/loop
yaqi 36760806d3 feat(chat): fail over to the next candidate on a pre-output failure
Chat-path wiring for #2693 P1. `AgenticChatPipeline` now builds its client
through `build_chain_client`, which returns today's single client unless the
catalog declares fallbacks *and* at least two candidates are healthy — so the
default configuration is untouched.

When a chain exists, the loop spends its existing pre-output retry on the next
candidate: it records the failure (cooling that candidate down), advances,
announces the switch, and retries the same round. This happens only where the
loop already knows nothing was emitted, so no partial answer is ever replayed.
After the switch the provider label and fallback count come from the new
candidate, so the P0 failure copy keeps telling the truth.

Not in this commit: the services-layer path (P2), catalog validation and the
settings editor (P3). Those, plus the integrated failover tests, are next.
2026-11-24 16:04:56 +08:00
..
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00