mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 11:50:02 +08:00
The 10-minute silence in #2693 does not come from the agent loop: a 401/429/5xx is retried inside the provider on the configured schedule (5s → 120s per attempt, 8 attempts), and those sleeps emit no stream events at all. The turn looks frozen until the final error. - `LLMProvider` gains an optional async `retry_observer`, called before each retry sleep with the attempt number, total and delay. A failing observer is logged and ignored: visibility must never turn a retry into a failure. - The agent loop attaches an observer before every model call and emits the same `provider_retry` notice the transport-retry path already used, now with the provider label, attempt count and `retry_delay_s` / `fallbacks_configured` in the trace metadata. - Covered by unit tests for the observer contract (called once per retry, and inert when it raises).