Repository navigation
Commit 1e2a0e8
committed
Hub: fix dataset inventory error handling + GGUF cancel race
Two production bugs in the Hub:
1. Dataset inventory swallowed errors. listCachedDatasets caught
404s and JSON parse failures into an empty list, so a real
backend/routing failure rendered as a confident "no datasets on
device." The model and GGUF fetchers already throw on any
error. Unified datasets with them so genuine failures now
surface a proper Datasets error state instead of looking empty.
2. Cancelling a GGUF download could orphan it. A GGUF download
resolves blob hashes before the backend claims the job. If you
hit Cancel during that window, the cancel was dropped (no
active job yet) and the existing re-issue safeguard got
skipped, so the UI showed "cancelled" while the download kept
running. Fixed so the cancel is correctly re-issued once the
job is claimed, and the download actually stops.1 parent 080c263 commit 1e2a0e8
2 files changed
Lines changed: 5 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
751 | 753 | | |
752 | 754 | | |
753 | 755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 254 | + | |
| 255 | + | |
269 | 256 | | |
270 | 257 | | |
271 | 258 | | |
| |||
0 commit comments