You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added `navigator.storage.persist()` request when downloading local AI models, preventing the browser from silently evicting cached model files under storage pressure.
6
+
7
+
## Changes
8
+
9
+
### Modified: `js/ai-assistant.js`
10
+
- Made consent download handler `async`
11
+
- Added `navigator.storage.persist()` call before `initAiWorker()`
12
+
- Wrapped in try/catch — non-critical, download proceeds regardless
13
+
- Logs result to console (`💾 Persistent storage granted` / `⚠️ ... not granted`)
14
+
15
+
## Impact
16
+
17
+
-**Chrome**: Auto-grants persistent storage for frequently-visited sites and installed PWAs
18
+
-**Firefox**: May show a one-time user prompt
19
+
-**Safari**: Supports the API; behavior varies
20
+
- Prevents browsers from garbage-collecting cached models (80 MB – 2.7 GB) when disk space is low
0 commit comments