Apply item 0x4ac69e55 for issue #10

Squash of the patch of item 0x4ac69e554cfa29c1fb7819e9835c17153233e73e72ecb0b821628233c820eb3c, final in the elffuss ledger.
Solver 0xdd8075ba73c2173b9f05957b5f1a7561600e5494; 2 approvals of round 0.

T2T-Item: 0x4ac69e554cfa29c1fb7819e9835c17153233e73e72ecb0b821628233c820eb3c
T2T-Issue: 0xb8d7c6d9815eb6af5efae391d136467cda8c028200c2b5ec5a36fa6620196c53
T2T-Event: 0x96cb4689693dca2b068c24579b325bee24f431c0e6c31a1d7f0b39f8810f534f
This commit is contained in:
elffuss-bot
2026-10-03 17:32:55 +00:00
parent ede2250e96
commit e2c294fb43
3 changed files with 53 additions and 0 deletions

View File

@@ -48,4 +48,8 @@ export async function clearModelCache() {
if (navigator.serviceWorker && navigator.serviceWorker.controller)
navigator.serviceWorker.controller.postMessage('clear-models');
try { await caches.delete('elffuss-models-v1'); } catch { /* */ }
try {
const { clearAll } = await import('./runtime/model-store.js');
await clearAll();
} catch { /* sin almacén OPFS: nada que vaciar */ }
}