Commit 5c18e54
⚡ Bolt: Fix Router network config and lifecycle safety
- Configures `aiohttp.ClientSession(trust_env=True)` to respect proxy settings, which is critical for CI environments.
- Adds defensive lazy initialization of `self.session` in `_generate` and `_generate_stream` to prevent crashes if `startup()` is bypassed in tests.
- Re-verifies code style with `black`.
Co-authored-by: ZeyuChen <1371212+ZeyuChen@users.noreply.github.com>1 parent e017bd3 commit 5c18e54
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
| |||
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
276 | | - | |
| 277 | + | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| |||
0 commit comments