mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 17:01:07 +08:00
#1356 was reported as "retrieval hides embedding connectivity failures". The adapter had always raised a ConnectionError naming the endpoint and the remedy; the text was discarded a layer above, where the template had no placeholder to put it in.4e816d79converged the tool-dispatch half. This is the audit for the rest of it. Two scans, both over the AST rather than by eye: handlers that raise or return a generic literal without touching the exception they caught, and handlers that log the cause but hand the user a literal. The result is smaller than expected and worth recording — the codebase is mostly honest here, and the sites that do hide a cause almost all do it on purpose. `knowledge.py` refuses to echo an upstream message from a credential-bearing flow, and says so at the site; WeCom onboarding does the same. Those stay. Three did not have a reason: * the agent loop's forced finish told the reader "a step failed" while the caller was logging the exception on the line above; * the question pipeline's tool summarizer did the same, in the same shape, two lines apart; * the update check turned every transport failure into "Unable to check for updates", which cannot distinguish being offline from a proxy that blocks github.com. The release URL is public and carries no credentials, so there was nothing to protect. All three now carry what they already knew, through the same `{error}` placeholder4e816d79established, in both locales. The test is the durable half. A key the runtime formats with a cause must have a slot for it in every locale that defines it — the exact drift that let #1356 ship, where the code passed a cause the template could not accept and nothing complained. 6925 passed, 24 skipped.