fix: allow extension to load when offline

The model fetch at startup throws and blocks pi from starting when
there's no network. Catch the error and register the provider with
an empty model list instead.
This commit is contained in:
K2
2026-07-23 11:19:04 +01:00
parent 64d538a910
commit 811f908918
2 changed files with 13 additions and 2 deletions
+6
View File
@@ -2,6 +2,12 @@
## Unreleased
- Allow pi to start when the model list fetch fails due to no network connectivity. Command Code models are fetched live when online; if the provider starts offline, run `/reload` once connected to refresh the model catalog.
### Contributors
- @k3-2o — reported that the model-list fetch blocked pi startup when offline.
## 0.4.2 - 2026-07-05
- Fix Oh My Pi extension validation by avoiding the missing `calculateCost` export from OMP's legacy `pi-ai` shim.