Commit 7ad40a1
Telegram: only replace global undici dispatcher when autoSelectFamily is enabled
Replacing the global dispatcher unconditionally (even with autoSelectFamily=false)
swaps in a bare Agent that discards any configuration the original default dispatcher
carried. This breaks other HTTP clients in the same process — notably LLM provider
fetches (e.g. Anthropic API) which return HTTP 403 after the dispatcher swap.
Only replace the dispatcher when autoSelectFamily is explicitly true, which is the
only case where the workaround is actually needed.
Fixes #23600
Related: #25682, #25676
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent a898acb commit 7ad40a1
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | | - | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | | - | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
56 | | - | |
57 | | - | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| |||
0 commit comments