Commit 3e31dfc
fix(core): catch auth errors to allow offline model discovery (#366)
When the device is offline, setupHTTP/Auth.authenticate throws an error
that previously caused completeServicesInitialization to fail entirely.
This prevented CppBridge.ModelRegistry.discoverDownloadedModels from
running, so already-downloaded models would not appear in the UI.
Wrap setupHTTP in a do-catch so that auth failures are logged as
warnings while the rest of initialization (C++ state, service bridges,
model path setup, and local model discovery) proceeds normally.1 parent 0a9dede commit 3e31dfc
1 file changed
Lines changed: 8 additions & 1 deletion
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
323 | 330 | | |
324 | 331 | | |
325 | 332 | | |
| |||
0 commit comments